Class: SnapTrade::APIStatusApi
- Inherits:
-
Object
- Object
- SnapTrade::APIStatusApi
- Defined in:
- lib/snaptrade/api/api_status_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#check(extra: {}) ⇒ Object
Get API Status.
-
#check_with_http_info(extra: {}) ⇒ Object
Get API Status.
-
#initialize(api_client = ApiClient.default) ⇒ APIStatusApi
constructor
A new instance of APIStatusApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ APIStatusApi
Returns a new instance of APIStatusApi.
16 17 18 |
# File 'lib/snaptrade/api/api_status_api.rb', line 16 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
14 15 16 |
# File 'lib/snaptrade/api/api_status_api.rb', line 14 def api_client @api_client end |
Instance Method Details
#check(extra: {}) ⇒ Object
Get API Status
Check whether the API is operational and verify timestamps.
25 26 27 28 |
# File 'lib/snaptrade/api/api_status_api.rb', line 25 def check(extra: {}) data, _status_code, _headers = check_with_http_info_impl(extra) data end |
#check_with_http_info(extra: {}) ⇒ Object
Get API Status
Check whether the API is operational and verify timestamps.
35 36 37 |
# File 'lib/snaptrade/api/api_status_api.rb', line 35 def check_with_http_info(extra: {}) check_with_http_info_impl(extra) end |