Class: Holidays::Definition::Entity::CustomMethod

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject

Returns the value of attribute arguments

Returns:

  • (Object)

    the current value of arguments



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

def arguments
  @arguments
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



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

def source
  @source
end