Class: Signalwire::REST::Client
- Inherits:
-
Twilio::REST::Client
- Object
- Twilio::REST::Client
- Signalwire::REST::Client
- Defined in:
- lib/signalwire/rest/client.rb
Instance Method Summary collapse
-
#initialize(username = nil, password = nil, account_sid = nil, region = nil, http_client = Twilio::HTTP::Client.new, **args) ⇒ Client
constructor
A new instance of Client.
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, account_sid = 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, account_sid, region, http_client) end |