Class: Transport::JSON::ResponseParser

Inherits:
Object
  • Object
show all
Defined in:
lib/transport/json/response_parser.rb

Overview

Parser for the json response.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#resultObject (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

#performObject



17
18
19
# File 'lib/transport/json/response_parser.rb', line 17

def perform
  parse_response_body
end