Class: EODData::Client::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/eod_data/client.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Response

Returns a new instance of Response.



148
149
150
# File 'lib/eod_data/client.rb', line 148

def initialize(response)
  @response = response.body["#{response_name}_response".to_sym]
end

Instance Method Details

#resultObject



152
153
154
155
156
# File 'lib/eod_data/client.rb', line 152

def result
  @result ||= result_class.new(
    @response["#{response_name}_result".to_sym]
  )
end