Class: Twilio::REST::Bulkexports::V1::ExportList

Inherits:
ListResource
  • Object
show all
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

Constructor Details

#initialize(version) ⇒ ExportList

Initialize the ExportList

Parameters:

  • version (Version)

    Version that contains the resource



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

Returns:

Raises:

  • (ArgumentError)


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_sObject

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