class Twilio::REST::Preview::BulkExports
Public Class Methods
new(domain)
click to toggle source
Initialize the BulkExports
version of Preview
Calls superclass method
Twilio::REST::Version::new
# File lib/twilio-ruby/rest/preview/bulk_exports.rb 15 def initialize(domain) 16 super 17 @version = 'BulkExports' 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::Preview::BulkExports::ExportConfigurationContext] if resource_type was passed. @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
# File lib/twilio-ruby/rest/preview/bulk_exports.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::Preview::BulkExports::ExportContext] if resource_type was passed. @return [Twilio::REST::Preview::BulkExports::ExportList]
# File lib/twilio-ruby/rest/preview/bulk_exports.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/preview/bulk_exports.rb 56 def to_s 57 '<Twilio::REST::Preview::BulkExports>' 58 end