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


18
19
20
21
22
23
24
25
26
# File 'lib/twilio-ruby/rest/bulkexports/v1/export.rb', line 18

def initialize(version)
  super(version)

  # Path Solution
  @solution = {}

  # Components
  @jobs = nil
end

Instance Method Details

#jobs(job_sid = :unset) ⇒ JobList, JobContext

Access the jobs

Parameters:

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

    The unique string that that we created to identify the Bulk Export job

Returns:

Raises:

  • (ArgumentError)

34
35
36
37
38
39
40
41
42
# File 'lib/twilio-ruby/rest/bulkexports/v1/export.rb', line 34

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


46
47
48
# File 'lib/twilio-ruby/rest/bulkexports/v1/export.rb', line 46

def to_s
  '#<Twilio.Bulkexports.V1.ExportList>'
end