Class: Rafflesia::InputBody

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/jobs/input_body.rb

Constant Summary collapse

HASH_ATTRS =
{
  reason: :reason
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ InputBody

Returns a new instance of InputBody.



14
15
16
17
18
# File 'lib/rafflesia/jobs/input_body.rb', line 14

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @reason = hash[:reason]
end

Instance Attribute Details

#reasonObject

Returns the value of attribute reason.



12
13
14
# File 'lib/rafflesia/jobs/input_body.rb', line 12

def reason
  @reason
end