Class: Hws::Connectors::Hypto

Inherits:
Hws::Connectors show all
Defined in:
lib/hws-connectors/hypto/base.rb

Direct Known Subclasses

Payout, VirtualAccount

Defined Under Namespace

Classes: Payout, VirtualAccount

Constant Summary collapse

NAME =
'hypto'.freeze
END_POINTS =
::YAML.load_file(File.join(__dir__, 'endpoints.yml')).freeze

Constants inherited from Hws::Connectors

VERSION

Instance Method Summary collapse

Methods inherited from Hws::Connectors

configure, logging?

Methods included from Helper

included

Constructor Details

#initialize(options = {}) ⇒ Hypto

Returns a new instance of Hypto.



8
9
10
11
# File 'lib/hws-connectors/hypto/base.rb', line 8

def initialize(options = {})
  @api_token = options['api_token']
  @base_url = "https://partners.hypto#{'.co' if options['env'].try(:to_sym) != :production}.in"
end