Class: Twilio::REST::Fax
- Defined in:
- lib/signalwire/sdk/twilio_set_fax.rb
Defined Under Namespace
Classes: V1
Instance Attribute Summary collapse
-
#account_sid ⇒ Object
readonly
Returns the value of attribute account_sid.
Instance Method Summary collapse
- #hostname ⇒ Object
-
#initialize(twilio) ⇒ Fax
constructor
A new instance of Fax.
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ Fax
Returns a new instance of Fax.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/signalwire/sdk/twilio_set_fax.rb', line 6 def initialize(twilio) super @host = ENV['SIGNALWIRE_HOST'] || Signalwire::Sdk.configuration.hostname || raise(ArgumentError, 'SignalWire Space URL is not configured. Enter your SignalWire Space domain via the '\ 'SIGNALWIRE_HOST environment variable, or hostname in the configuration.') @base_url = "https://#{@host}" @port = 443 # Versions @v1 = nil # New properties @account_sid = twilio.account_sid end |
Instance Attribute Details
#account_sid ⇒ Object (readonly)
Returns the value of attribute account_sid.
29 30 31 |
# File 'lib/signalwire/sdk/twilio_set_fax.rb', line 29 def account_sid @account_sid end |
Instance Method Details
#hostname ⇒ Object
25 26 27 |
# File 'lib/signalwire/sdk/twilio_set_fax.rb', line 25 def hostname @host end |