class OmiseGO::Client

Attributes

config[RW]

Public Class Methods

new(options = nil) click to toggle source
# File lib/omisego/client.rb, line 5
def initialize(options = nil)
  @config = load_config(options)
end

Public Instance Methods

call(path, params) click to toggle source
# File lib/omisego/client.rb, line 9
def call(path, params)
  request.call(path: path, body: params)
end
request() click to toggle source
# File lib/omisego/client.rb, line 13
def request
  @request ||= Request.new(self)
end

Private Instance Methods

load_config(options) click to toggle source
# File lib/omisego/client.rb, line 19
def load_config(options)
  return OmiseGO.configuration unless options
  Configuration.new(options.to_hash)
end