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.
267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/snaptrade.rb', line 267 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.
257 258 259 |
# File 'lib/snaptrade.rb', line 257 def account_information @account_information end |
#api_status ⇒ Object (readonly)
Returns the value of attribute api_status.
258 259 260 |
# File 'lib/snaptrade.rb', line 258 def api_status @api_status end |
#authentication ⇒ Object (readonly)
Returns the value of attribute authentication.
259 260 261 |
# File 'lib/snaptrade.rb', line 259 def authentication @authentication end |
#connections ⇒ Object (readonly)
Returns the value of attribute connections.
260 261 262 |
# File 'lib/snaptrade.rb', line 260 def connections @connections end |
#experimental_endpoints ⇒ Object (readonly)
Returns the value of attribute experimental_endpoints.
261 262 263 |
# File 'lib/snaptrade.rb', line 261 def experimental_endpoints @experimental_endpoints end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
262 263 264 |
# File 'lib/snaptrade.rb', line 262 def @options end |
#reference_data ⇒ Object (readonly)
Returns the value of attribute reference_data.
263 264 265 |
# File 'lib/snaptrade.rb', line 263 def reference_data @reference_data end |
#trading ⇒ Object (readonly)
Returns the value of attribute trading.
264 265 266 |
# File 'lib/snaptrade.rb', line 264 def trading @trading end |
#transactions_and_reporting ⇒ Object (readonly)
Returns the value of attribute transactions_and_reporting.
265 266 267 |
# File 'lib/snaptrade.rb', line 265 def transactions_and_reporting @transactions_and_reporting end |