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.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#reference_data ⇒ Object
readonly
Returns the value of attribute reference_data.
-
#trading ⇒ Object
readonly
Returns the value of attribute trading.
-
#transactions_and_reporting ⇒ Object
readonly
Returns the value of attribute transactions_and_reporting.
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.
303 304 305 306 307 308 309 310 311 312 313 314 |
# File 'lib/snaptrade.rb', line 303 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) @options = SnapTrade::OptionsApi.new(@api_client) @reference_data = SnapTrade::ReferenceDataApi.new(@api_client) @trading = SnapTrade::TradingApi.new(@api_client) @transactions_and_reporting = SnapTrade::TransactionsAndReportingApi.new(@api_client) end |
Instance Attribute Details
#account_information ⇒ Object (readonly)
Returns the value of attribute account_information.
293 294 295 |
# File 'lib/snaptrade.rb', line 293 def account_information @account_information end |
#api_status ⇒ Object (readonly)
Returns the value of attribute api_status.
294 295 296 |
# File 'lib/snaptrade.rb', line 294 def api_status @api_status end |
#authentication ⇒ Object (readonly)
Returns the value of attribute authentication.
295 296 297 |
# File 'lib/snaptrade.rb', line 295 def authentication @authentication end |
#connections ⇒ Object (readonly)
Returns the value of attribute connections.
296 297 298 |
# File 'lib/snaptrade.rb', line 296 def connections @connections end |
#experimental_endpoints ⇒ Object (readonly)
Returns the value of attribute experimental_endpoints.
297 298 299 |
# File 'lib/snaptrade.rb', line 297 def experimental_endpoints @experimental_endpoints end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
298 299 300 |
# File 'lib/snaptrade.rb', line 298 def @options end |
#reference_data ⇒ Object (readonly)
Returns the value of attribute reference_data.
299 300 301 |
# File 'lib/snaptrade.rb', line 299 def reference_data @reference_data end |
#trading ⇒ Object (readonly)
Returns the value of attribute trading.
300 301 302 |
# File 'lib/snaptrade.rb', line 300 def trading @trading end |
#transactions_and_reporting ⇒ Object (readonly)
Returns the value of attribute transactions_and_reporting.
301 302 303 |
# File 'lib/snaptrade.rb', line 301 def transactions_and_reporting @transactions_and_reporting end |