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

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/bulkexports/v1.rb,
lib/twilio-ruby/rest/bulkexports/v1/export.rb,
lib/twilio-ruby/rest/bulkexports/v1/export/day.rb,
lib/twilio-ruby/rest/bulkexports/v1/export/job.rb,
lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb,
lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb

Defined Under Namespace

Classes: ExportConfigurationContext, ExportConfigurationInstance, ExportConfigurationList, ExportConfigurationPage, ExportContext, ExportInstance, ExportList, ExportPage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

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 Bulkexports


15
16
17
18
19
20
# File 'lib/twilio-ruby/rest/bulkexports/v1.rb', line 15

def initialize(domain)
  super
  @version = 'v1'
  @exports = nil
  @export_configuration = nil
end

Instance Method Details

#export_configuration(resource_type = :unset) ⇒ Twilio::REST::Bulkexports::V1::ExportConfigurationContext, Twilio::REST::Bulkexports::V1::ExportConfigurationList

Parameters:

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

    The type of communication – Messages, Calls, Conferences, and Participants

Returns:


43
44
45
46
47
48
49
50
51
52
# File 'lib/twilio-ruby/rest/bulkexports/v1.rb', line 43

def export_configuration(resource_type=:unset)
  if resource_type.nil?
      raise ArgumentError, 'resource_type cannot be nil'
  end
  if resource_type == :unset
      @export_configuration ||= ExportConfigurationList.new self
  else
      ExportConfigurationContext.new(self, resource_type)
  end
end

#exports(resource_type = :unset) ⇒ Twilio::REST::Bulkexports::V1::ExportContext, Twilio::REST::Bulkexports::V1::ExportList

Parameters:

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

    The type of communication – Messages, Calls, Conferences, and Participants

Returns:


27
28
29
30
31
32
33
34
35
36
# File 'lib/twilio-ruby/rest/bulkexports/v1.rb', line 27

def exports(resource_type=:unset)
  if resource_type.nil?
      raise ArgumentError, 'resource_type cannot be nil'
  end
  if resource_type == :unset
      @exports ||= ExportList.new self
  else
      ExportContext.new(self, resource_type)
  end
end

#to_sObject

Provide a user friendly representation


56
57
58
# File 'lib/twilio-ruby/rest/bulkexports/v1.rb', line 56

def to_s
  '<Twilio::REST::Bulkexports::V1>'
end