Class: TDAmeritrade::Operations::BaseOperation
- Inherits:
-
Object
- Object
- TDAmeritrade::Operations::BaseOperation
- Includes:
- Util
- Defined in:
- lib/tdameritrade/operations/base_operation.rb
Direct Known Subclasses
CreateWatchlist, GetInstrumentFundamentals, GetPriceHistory, GetQuotes, GetWatchlists, ReplaceWatchlist, UpdateWatchlist
Constant Summary collapse
- HTTP_DEBUG_OUTPUT =
to make live testing easier
ENV['DEBUG_OUTPUT']
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ BaseOperation
constructor
A new instance of BaseOperation.
Methods included from Util
handle_api_error, parse_json_response, response_success?
Constructor Details
#initialize(client) ⇒ BaseOperation
Returns a new instance of BaseOperation.
13 14 15 |
# File 'lib/tdameritrade/operations/base_operation.rb', line 13 def initialize(client) @client = client # inject dependency of client credentials end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
11 12 13 |
# File 'lib/tdameritrade/operations/base_operation.rb', line 11 def client @client end |