Class: Typekitable::Response
- Inherits:
-
Struct
- Object
- Struct
- Typekitable::Response
- Defined in:
- lib/typekitable/request.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(from_hash) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(from_hash) ⇒ Response
Returns a new instance of Response.
62 63 64 |
# File 'lib/typekitable/request.rb', line 62 def initialize(from_hash) super(*from_hash.values_at(*members)) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
61 62 63 |
# File 'lib/typekitable/request.rb', line 61 def body @body end |
#code ⇒ Object
Returns the value of attribute code
61 62 63 |
# File 'lib/typekitable/request.rb', line 61 def code @code end |
#message ⇒ Object
Returns the value of attribute message
61 62 63 |
# File 'lib/typekitable/request.rb', line 61 def end |