class Twilio::REST::Bulkexports::V1
Public Class Methods
new(domain)
click to toggle source
Initialize the V1
version of Bulkexports
Calls superclass method
Twilio::REST::Version::new
# File lib/twilio-ruby/rest/bulkexports/v1.rb 15 def initialize(domain) 16 super 17 @version = 'v1' 18 @exports = nil 19 @export_configuration = nil 20 end
Public Instance Methods
export_configuration(resource_type=:unset)
click to toggle source
@param [String] resource_type The type of communication – Messages, Calls,
Conferences, and Participants
@return [Twilio::REST::Bulkexports::V1::ExportConfigurationContext] if resource_type was passed. @return [Twilio::REST::Bulkexports::V1::ExportConfigurationList]
# File lib/twilio-ruby/rest/bulkexports/v1.rb 43 def export_configuration(resource_type=:unset) 44 if resource_type.nil? 45 raise ArgumentError, 'resource_type cannot be nil' 46 end 47 if resource_type == :unset 48 @export_configuration ||= ExportConfigurationList.new self 49 else 50 ExportConfigurationContext.new(self, resource_type) 51 end 52 end
exports(resource_type=:unset)
click to toggle source
@param [String] resource_type The type of communication – Messages, Calls,
Conferences, and Participants
@return [Twilio::REST::Bulkexports::V1::ExportContext] if resource_type was passed. @return [Twilio::REST::Bulkexports::V1::ExportList]
# File lib/twilio-ruby/rest/bulkexports/v1.rb 27 def exports(resource_type=:unset) 28 if resource_type.nil? 29 raise ArgumentError, 'resource_type cannot be nil' 30 end 31 if resource_type == :unset 32 @exports ||= ExportList.new self 33 else 34 ExportContext.new(self, resource_type) 35 end 36 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/bulkexports/v1.rb 56 def to_s 57 '<Twilio::REST::Bulkexports::V1>' 58 end