Class: Holidays::Definition::Entity::Test

Inherits:
Struct
  • Object
show all
Defined in:
lib/holidays/definition/entity/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#datesObject

Returns the value of attribute dates

Returns:

  • (Object)

    the current value of 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?

Returns:

  • (Object)

    the current value of holiday?



4
5
6
# File 'lib/holidays/definition/entity/test.rb', line 4

def holiday?
  @holiday?
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/holidays/definition/entity/test.rb', line 4

def name
  @name
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



4
5
6
# File 'lib/holidays/definition/entity/test.rb', line 4

def options
  @options
end

#regionsObject

Returns the value of attribute regions

Returns:

  • (Object)

    the current value of regions



4
5
6
# File 'lib/holidays/definition/entity/test.rb', line 4

def regions
  @regions
end