class IceCube::Validations::MonthOfYear::Validation

Attributes

month[R]
value[R]

Public Class Methods

new(month) click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 23
def initialize(month)
  @month = month
end

Public Instance Methods

build_hash(builder) click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 43
def build_hash(builder)
  builder.validations_array(:month_of_year) << month
end
build_ical(builder) click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 47
def build_ical(builder)
  builder['BYMONTH'] << month
end
build_s(builder) click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 39
def build_s(builder)
  builder.piece(:month_of_year) << IceCube::I18n.t("date.month_names")[month]
end
dst_adjust?() click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 35
def dst_adjust?
  true
end
key() click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 27
def key
  :month_of_year
end
type() click to toggle source
# File lib/ice_cube/validations/month_of_year.rb, line 31
def type
  :month
end