Method: BasecommSdk::Client#initialize

Defined in:
lib/basecomm_sdk/client.rb

#initialize(args) ⇒ Client

Returns a new instance of Client.



10
11
12
13
14
15
16
17
18
# File 'lib/basecomm_sdk/client.rb', line 10

def initialize(args)
  @gateway_username = args[:gateway_username]
  @gateway_password = args[:gateway_password]
  @key              = args[:key]
  @sandbox          = args[:sandbox]
  @url              = args.fetch(:url) do
    @sandbox ? DEFAULT_SANDBOX_URL : DEFAULT_BASE_URL
  end
end