Class: Signalwire::REST::Client

Inherits:
Twilio::REST::Client
  • Object
show all
Defined in:
lib/signalwire/rest/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(username = nil, password = nil, account_sid = nil, region = nil, http_client = Twilio::HTTP::Client.new, **args) ⇒ Client

Returns a new instance of Client.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/signalwire/rest/client.rb', line 5

def initialize(username = nil, password = nil,  = nil, region = nil, http_client = Twilio::HTTP::Client.new, **args)
  host = args.delete(:signalwire_space_url)

  unless host.nil?
    Signalwire::Sdk.configure do |config|
      config.hostname = host
    end
  end

  super(username, password, , region, http_client)
end