Class: OSTSdk::Saas::BaseTokens

Inherits:
Base
  • Object
show all
Defined in:
lib/ost-sdk-ruby/saas/base_tokens.rb

Instance Attribute Summary

Attributes inherited from Base

#http_helper

Instance Method Summary collapse

Methods included from Util::ServicesHelper

#current_time, #current_timestamp, #perform_and_handle_exceptions

Constructor Details

#initialize(params) ⇒ BaseTokens

Initialize

Arguments:

api_base_url: (String)
api_key: (String)
api_secret: (String)
api_spec: (Boolean)
config: (Hash)


17
18
19
20
# File 'lib/ost-sdk-ruby/saas/base_tokens.rb', line 17

def initialize(params)
  super
  @url_prefix = '/base-tokens'
end

Instance Method Details

#get(params = {}) ⇒ Object

Get token details

Returns:

response: (Hash)


27
28
29
# File 'lib/ost-sdk-ruby/saas/base_tokens.rb', line 27

def get(params = {})
  http_helper.send_get_request("#{@url_prefix}", params)
end