Class: EODData::Client::Response
- Inherits:
-
Object
- Object
- EODData::Client::Response
- Defined in:
- lib/eod_data/client.rb
Overview
:nodoc:
Direct Known Subclasses
LoginResponse, QuoteGetResponse, QuoteList2Response, QuoteListByDateResponse
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
- #result ⇒ Object
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
#result ⇒ Object
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 |