Class: Twilio::REST::Fax

Inherits:
Domain
  • Object
show all
Defined in:
lib/signalwire/sdk/twilio_set_fax.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url

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.
end

Instance Attribute Details

#account_sidObject (readonly)

Returns the value of attribute account_sid.



29
30
31
# File 'lib/signalwire/sdk/twilio_set_fax.rb', line 29

def 
  @account_sid
end

Instance Method Details

#hostnameObject



25
26
27
# File 'lib/signalwire/sdk/twilio_set_fax.rb', line 25

def hostname
  @host
end