Class: Rafflesia::InputBody
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::InputBody
- Defined in:
- lib/rafflesia/jobs/input_body.rb
Constant Summary collapse
- HASH_ATTRS =
{ reason: :reason }.freeze
Instance Attribute Summary collapse
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(json) ⇒ InputBody
constructor
A new instance of InputBody.
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
#reason ⇒ Object
Returns the value of attribute reason.
12 13 14 |
# File 'lib/rafflesia/jobs/input_body.rb', line 12 def reason @reason end |