class Twilio::REST::Fax
Public Class Methods
new(twilio)
click to toggle source
Calls superclass method
Twilio::REST::Domain::new
# File lib/twilio-ruby/rest/fax.rb 14 def initialize(twilio) 15 super 16 17 @base_url = 'https://fax.twilio.com' 18 @host = 'fax.twilio.com' 19 @port = 443 20 21 # Versions 22 @v1 = nil 23 end
Public Instance Methods
faxes(sid=:unset)
click to toggle source
@param [String] sid The unique string that we created to identify the Fax
resource.
@return [Twilio::REST::Fax::V1::FaxInstance] if sid was passed. @return [Twilio::REST::Fax::V1::FaxList]
# File lib/twilio-ruby/rest/fax.rb 36 def faxes(sid=:unset) 37 self.v1.faxes(sid) 38 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/fax.rb 42 def to_s 43 '#<Twilio::REST::Fax>' 44 end
v1()
click to toggle source
Version
v1 of fax
# File lib/twilio-ruby/rest/fax.rb 27 def v1 28 @v1 ||= V1.new self 29 end