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