Class: Nephophobia::Response::Return
- Inherits:
-
Object
- Object
- Nephophobia::Response::Return
- Defined in:
- lib/nephophobia/response/return.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#return ⇒ Object
readonly
Returns the value of attribute return.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Return
constructor
A new instance of Return.
Constructor Details
#initialize(attributes) ⇒ Return
Returns a new instance of Return.
8 9 10 11 12 13 |
# File 'lib/nephophobia/response/return.rb', line 8 def initialize attributes @attributes = attributes @request_id = attributes["requestId"] @return = attributes["return"] == "true" end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
6 7 8 |
# File 'lib/nephophobia/response/return.rb', line 6 def attributes @attributes end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
4 5 6 |
# File 'lib/nephophobia/response/return.rb', line 4 def request_id @request_id end |
#return ⇒ Object (readonly)
Returns the value of attribute return.
4 5 6 |
# File 'lib/nephophobia/response/return.rb', line 4 def return @return end |