Class: OSTSdk::Saas::Chains

Inherits:
Base
  • Object
show all
Defined in:
lib/ost-sdk-ruby/saas/chains.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) ⇒ Chains

Initialize

Arguments:

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


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

def initialize(params)
  super
  @url_prefix = '/chains'
end

Instance Method Details

#get(params = {}) ⇒ Object

Get chain details

Returns:

response: (Hash)


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

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