Class: Twilio::REST::Fax

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/fax.rb,
lib/twilio-ruby/rest/fax/v1.rb,
lib/twilio-ruby/rest/fax/v1/fax.rb,
lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Fax

Initialize the Fax Domain



12
13
14
15
16
17
18
19
20
21
# File 'lib/twilio-ruby/rest/fax.rb', line 12

def initialize(twilio)
  super

  @base_url = 'https://fax.twilio.com'
  @host = 'fax.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
end

Instance Method Details

#faxes(sid = :unset) ⇒ Twilio::REST::Fax::V1::FaxInstance, Twilio::REST::Fax::V1::FaxList

Parameters:

  • sid (String) (defaults to: :unset)

    A 34 character string that uniquely identifies this fax.

Returns:



33
34
35
# File 'lib/twilio-ruby/rest/fax.rb', line 33

def faxes(sid=:unset)
  self.v1.faxes(sid)
end

#to_sObject

Provide a user friendly representation



39
40
41
# File 'lib/twilio-ruby/rest/fax.rb', line 39

def to_s
  '#<Twilio::REST::Fax>'
end

#v1Object

Version v1 of fax



25
26
27
# File 'lib/twilio-ruby/rest/fax.rb', line 25

def v1
  @v1 ||= V1.new self
end