Class: Twilio::REST::Fax::V1
- Defined in:
- 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: FaxContext, FaxInstance, FaxList, FaxPage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #faxes(sid = :unset) ⇒ Twilio::REST::Fax::V1::FaxContext, Twilio::REST::Fax::V1::FaxList
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Fax.
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of Fax
15 16 17 18 19 |
# File 'lib/twilio-ruby/rest/fax/v1.rb', line 15 def initialize(domain) super @version = 'v1' @faxes = nil end |
Instance Method Details
#faxes(sid = :unset) ⇒ Twilio::REST::Fax::V1::FaxContext, Twilio::REST::Fax::V1::FaxList
26 27 28 29 30 31 32 33 34 |
# File 'lib/twilio-ruby/rest/fax/v1.rb', line 26 def faxes(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @faxes ||= FaxList.new self else FaxContext.new(self, sid) end end |
#to_s ⇒ Object
Provide a user friendly representation
38 39 40 |
# File 'lib/twilio-ruby/rest/fax/v1.rb', line 38 def to_s '<Twilio::REST::Fax::V1>' end |