Class: SnapTrade::Client
- Inherits:
-
Object
- Object
- SnapTrade::Client
- Defined in:
- lib/snaptrade.rb
Instance Attribute Summary collapse
-
#account_information ⇒ Object
readonly
Returns the value of attribute account_information.
-
#api_status ⇒ Object
readonly
Returns the value of attribute api_status.
-
#authentication ⇒ Object
readonly
Returns the value of attribute authentication.
-
#connections ⇒ Object
readonly
Returns the value of attribute connections.
-
#experimental_endpoints ⇒ Object
readonly
Returns the value of attribute experimental_endpoints.
-
#reference_data ⇒ Object
readonly
Returns the value of attribute reference_data.
-
#trading ⇒ Object
readonly
Returns the value of attribute trading.
Instance Method Summary collapse
-
#initialize(config = Configuration.default) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(config = Configuration.default) ⇒ Client
Returns a new instance of Client.
323 324 325 326 327 328 329 330 331 332 |
# File 'lib/snaptrade.rb', line 323 def initialize(config = Configuration.default) @api_client = ApiClient::new(config) @account_information = SnapTrade::AccountInformationApi.new(@api_client) @api_status = SnapTrade::APIStatusApi.new(@api_client) @authentication = SnapTrade::AuthenticationApi.new(@api_client) @connections = SnapTrade::ConnectionsApi.new(@api_client) @experimental_endpoints = SnapTrade::ExperimentalEndpointsApi.new(@api_client) @reference_data = SnapTrade::ReferenceDataApi.new(@api_client) @trading = SnapTrade::TradingApi.new(@api_client) end |
Instance Attribute Details
#account_information ⇒ Object (readonly)
Returns the value of attribute account_information.
315 316 317 |
# File 'lib/snaptrade.rb', line 315 def account_information @account_information end |
#api_status ⇒ Object (readonly)
Returns the value of attribute api_status.
316 317 318 |
# File 'lib/snaptrade.rb', line 316 def api_status @api_status end |
#authentication ⇒ Object (readonly)
Returns the value of attribute authentication.
317 318 319 |
# File 'lib/snaptrade.rb', line 317 def authentication @authentication end |
#connections ⇒ Object (readonly)
Returns the value of attribute connections.
318 319 320 |
# File 'lib/snaptrade.rb', line 318 def connections @connections end |
#experimental_endpoints ⇒ Object (readonly)
Returns the value of attribute experimental_endpoints.
319 320 321 |
# File 'lib/snaptrade.rb', line 319 def experimental_endpoints @experimental_endpoints end |
#reference_data ⇒ Object (readonly)
Returns the value of attribute reference_data.
320 321 322 |
# File 'lib/snaptrade.rb', line 320 def reference_data @reference_data end |
#trading ⇒ Object (readonly)
Returns the value of attribute trading.
321 322 323 |
# File 'lib/snaptrade.rb', line 321 def trading @trading end |