Class: TDAmeritrade::Operations::BaseOperation

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/tdameritrade/operations/base_operation.rb

Constant Summary collapse

HTTP_DEBUG_OUTPUT =

to make live testing easier

ENV['DEBUG_OUTPUT']

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



11
12
13
# File 'lib/tdameritrade/operations/base_operation.rb', line 11

def client
  @client
end