Class: OSTSdk::Saas::Base
- Inherits:
-
Object
- Object
- OSTSdk::Saas::Base
- Includes:
- Util::ServicesHelper
- Defined in:
- lib/ost-sdk-ruby/saas/base.rb
Direct Known Subclasses
Balance, BaseTokens, Chains, DeviceManagers, Devices, PricePoints, RecoveryOwners, Rules, Sessions, Tokens, Transactions, Users, Webhooks
Instance Attribute Summary collapse
-
#http_helper ⇒ Object
readonly
Returns the value of attribute http_helper.
Instance Method Summary collapse
-
#initialize(params) ⇒ Base
constructor
Initialize.
Methods included from Util::ServicesHelper
#current_time, #current_timestamp, #perform_and_handle_exceptions
Constructor Details
#initialize(params) ⇒ Base
Initialize
Arguments:
api_base_url: (String)
api_key: (String)
api_secret: (String)
api_spec: (Boolean)
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/ost-sdk-ruby/saas/base.rb', line 19 def initialize(params) fail 'missing API Base URL' if params[:api_base_url].nil? fail 'missing API Key' if params[:api_key].nil? fail 'missing API Secret' if params[:api_secret].nil? params[:api_base_url] = sanitize_api_base_url(params[:api_base_url]) @http_helper = OSTSdk::Util::HTTPHelper.new(params) end |
Instance Attribute Details
#http_helper ⇒ Object (readonly)
Returns the value of attribute http_helper.
9 10 11 |
# File 'lib/ost-sdk-ruby/saas/base.rb', line 9 def http_helper @http_helper end |