Class: FunctionalLightService::Organizer::ReduceCase::Arguments
- Defined in:
- lib/functional-light-service/organizer/reduce_case.rb
Instance Attribute Summary collapse
-
#else ⇒ Object
readonly
Returns the value of attribute else.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#when ⇒ Object
readonly
Returns the value of attribute when.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Arguments
constructor
A new instance of Arguments.
Constructor Details
#initialize(**args) ⇒ Arguments
Returns a new instance of Arguments.
11 12 13 14 15 16 |
# File 'lib/functional-light-service/organizer/reduce_case.rb', line 11 def initialize(**args) validate_arguments(**args) @value = args[:value] @when = args[:when] @else = args[:else] end |
Instance Attribute Details
#else ⇒ Object (readonly)
Returns the value of attribute else.
9 10 11 |
# File 'lib/functional-light-service/organizer/reduce_case.rb', line 9 def else @else end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/functional-light-service/organizer/reduce_case.rb', line 9 def value @value end |
#when ⇒ Object (readonly)
Returns the value of attribute when.
9 10 11 |
# File 'lib/functional-light-service/organizer/reduce_case.rb', line 9 def when @when end |