Class: LightService::Organizer::ReduceCase::Arguments

Inherits:
Object
  • Object
show all
Defined in:
lib/light-service/organizer/reduce_case.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#elseObject (readonly)

Returns the value of attribute else.



7
8
9
# File 'lib/light-service/organizer/reduce_case.rb', line 7

def else
  @else
end

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/light-service/organizer/reduce_case.rb', line 7

def value
  @value
end

#whenObject (readonly)

Returns the value of attribute when.



7
8
9
# File 'lib/light-service/organizer/reduce_case.rb', line 7

def when
  @when
end