Class: Twilio::REST::Bulkexports::V1::ExportList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Bulkexports::V1::ExportList
- Defined in:
- lib/twilio-ruby/rest/bulkexports/v1/export.rb,
lib/twilio-ruby/rest/bulkexports/v1/export/job.rb
Defined Under Namespace
Classes: JobContext, JobInstance, JobList, JobPage
Instance Method Summary collapse
-
#initialize(version) ⇒ ExportList
constructor
Initialize the ExportList.
-
#jobs(job_sid = :unset) ⇒ JobList, JobContext
Access the jobs.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ ExportList
Initialize the ExportList
26 27 28 29 30 31 32 33 |
# File 'lib/twilio-ruby/rest/bulkexports/v1/export.rb', line 26 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/Exports" # Components @jobs = nil end |
Instance Method Details
#jobs(job_sid = :unset) ⇒ JobList, JobContext
Access the jobs
40 41 42 43 44 45 46 47 48 |
# File 'lib/twilio-ruby/rest/bulkexports/v1/export.rb', line 40 def jobs(job_sid=:unset) raise ArgumentError, 'job_sid cannot be nil' if job_sid.nil? if job_sid != :unset return JobContext.new(@version,job_sid ) end @jobs ||= JobList.new(@version ) end |
#to_s ⇒ Object
Provide a user friendly representation
51 52 53 |
# File 'lib/twilio-ruby/rest/bulkexports/v1/export.rb', line 51 def to_s '#<Twilio.Bulkexports.V1.ExportList>' end |