Class: Twilio::REST::Preview::BulkExports::ExportList

Inherits:
ListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/preview/bulk_exports/export.rb,
lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb

Overview

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected]

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


20
21
22
23
24
25
26
27
28
# File 'lib/twilio-ruby/rest/preview/bulk_exports/export.rb', line 20

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)

36
37
38
39
40
41
42
43
44
# File 'lib/twilio-ruby/rest/preview/bulk_exports/export.rb', line 36

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


48
49
50
# File 'lib/twilio-ruby/rest/preview/bulk_exports/export.rb', line 48

def to_s
  '#<Twilio.Preview.BulkExports.ExportList>'
end