Class: Transport::JSON::ResponseParser
- Inherits:
-
Object
- Object
- Transport::JSON::ResponseParser
- Defined in:
- lib/transport/json/response_parser.rb
Overview
Parser for the json response.
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(http_response) ⇒ ResponseParser
constructor
A new instance of ResponseParser.
- #perform ⇒ Object
Constructor Details
#initialize(http_response) ⇒ ResponseParser
Returns a new instance of ResponseParser.
13 14 15 |
# File 'lib/transport/json/response_parser.rb', line 13 def initialize(http_response) @http_response = http_response end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
11 12 13 |
# File 'lib/transport/json/response_parser.rb', line 11 def result @result end |
Instance Method Details
#perform ⇒ Object
17 18 19 |
# File 'lib/transport/json/response_parser.rb', line 17 def perform parse_response_body end |