Class: Twilio::REST::Bulkexports

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/bulkexports.rb,
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: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Bulkexports

Initialize the Bulkexports Domain


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

def initialize(twilio)
  super

  @base_url = 'https://bulkexports.twilio.com'
  @host = 'bulkexports.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
end

Instance Method Details

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

Parameters:

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

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

Returns:


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

def export_configuration(resource_type=:unset)
  self.v1.export_configuration(resource_type)
end

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

Parameters:

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

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

Returns:


36
37
38
# File 'lib/twilio-ruby/rest/bulkexports.rb', line 36

def exports(resource_type=:unset)
  self.v1.exports(resource_type)
end

#to_sObject

Provide a user friendly representation


51
52
53
# File 'lib/twilio-ruby/rest/bulkexports.rb', line 51

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

#v1Object

Version v1 of bulkexports


27
28
29
# File 'lib/twilio-ruby/rest/bulkexports.rb', line 27

def v1
  @v1 ||= V1.new self
end