class LibTAD::Holidays::HolidayState
A holiday event in a specific state.
Attributes
abbrev[R]
@return [String] Abbreviation of the state/subdivision.
exception[R]
@return [String] Eventual exception if the holiday does not affect the whole state/subdivision.
id[R]
@return [Integer] Unique id of the state/subdivision.
iso[R]
@return [String] An ISO 3166-1 country or ISO 3166-2 country state code. @see dev-test.timeanddate.com/docs/external-references#ISO3166 ISO3166
name[R]
@return [String] Common name of the state/subdivision.
Public Class Methods
new(hash)
click to toggle source
# File lib/types/holidays/holiday_state.rb, line 26 def initialize(hash) @iso = hash.fetch('iso', nil) @id = hash.fetch('id', nil) @abbrev = hash.fetch('abbrev', nil) @name = hash.fetch('name', nil) @exception = hash.fetch('exception', nil) end