Class: Holidays::Definition::Entity::Test
- Inherits:
-
Struct
- Object
- Struct
- Holidays::Definition::Entity::Test
- Defined in:
- lib/holidays/definition/entity/test.rb
Instance Attribute Summary collapse
-
#dates ⇒ Object
Returns the value of attribute dates.
-
#holiday? ⇒ Object
Returns the value of attribute holiday?.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#regions ⇒ Object
Returns the value of attribute regions.
Instance Method Summary collapse
-
#initialize(fields = {}) ⇒ Test
constructor
A new instance of Test.
Constructor Details
#initialize(fields = {}) ⇒ Test
Returns a new instance of Test.
5 6 7 |
# File 'lib/holidays/definition/entity/test.rb', line 5 def initialize(fields = {}) super(*fields.values_at(*members)) end |
Instance Attribute Details
#dates ⇒ Object
Returns the value of attribute dates
4 5 6 |
# File 'lib/holidays/definition/entity/test.rb', line 4 def dates @dates end |
#holiday? ⇒ Object
Returns the value of attribute holiday?
4 5 6 |
# File 'lib/holidays/definition/entity/test.rb', line 4
def holiday?
@holiday?
end
|
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/holidays/definition/entity/test.rb', line 4 def name @name end |
#options ⇒ Object
Returns the value of attribute options
4 5 6 |
# File 'lib/holidays/definition/entity/test.rb', line 4 def @options end |
#regions ⇒ Object
Returns the value of attribute regions
4 5 6 |
# File 'lib/holidays/definition/entity/test.rb', line 4 def regions @regions end |