Class: LightService::Organizer::ReduceCase::Arguments
- Inherits:
-
Object
- Object
- LightService::Organizer::ReduceCase::Arguments
- Defined in:
- lib/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
9 10 11 12 13 14 |
# File 'lib/light-service/organizer/reduce_case.rb', line 9 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.
7 8 9 |
# File 'lib/light-service/organizer/reduce_case.rb', line 7 def else @else end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/light-service/organizer/reduce_case.rb', line 7 def value @value end |
#when ⇒ Object (readonly)
Returns the value of attribute when.
7 8 9 |
# File 'lib/light-service/organizer/reduce_case.rb', line 7 def when @when end |