Class: ErroneousAPI::Client::Response
- Inherits:
-
Object
- Object
- ErroneousAPI::Client::Response
- Defined in:
- lib/erroneous-api/client.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
Returns the value of attribute details.
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(json_response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(json_response) ⇒ Response
Returns a new instance of Response.
26 27 28 29 30 |
# File 'lib/erroneous-api/client.rb', line 26 def initialize(json_response) @lines = json_response['lines'] @summary = json_response['summary'] @details = json_response['details'] end |
Instance Attribute Details
#details ⇒ Object
Returns the value of attribute details.
25 26 27 |
# File 'lib/erroneous-api/client.rb', line 25 def details @details end |
#lines ⇒ Object
Returns the value of attribute lines.
25 26 27 |
# File 'lib/erroneous-api/client.rb', line 25 def lines @lines end |
#summary ⇒ Object
Returns the value of attribute summary.
25 26 27 |
# File 'lib/erroneous-api/client.rb', line 25 def summary @summary end |