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



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

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:



46
47
48
49
50
51
52
53
54
55
# File 'lib/twilio-ruby/rest/bulkexports/v1.rb', line 46

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:



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

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



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

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