class Twilio::REST::Preview::BulkExports::ExportInstance

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

Public Class Methods

new(version, payload, resource_type: nil) click to toggle source

Initialize the ExportInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] resource_type The type of communication – Messages, Calls,

Conferences, and Participants

@return [ExportInstance] ExportInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/preview/bulk_exports/export.rb
169 def initialize(version, payload, resource_type: nil)
170   super(version)
171 
172   # Marshaled Properties
173   @properties = {
174       'resource_type' => payload['resource_type'],
175       'url' => payload['url'],
176       'links' => payload['links'],
177   }
178 
179   # Context
180   @instance_context = nil
181   @params = {'resource_type' => resource_type || @properties['resource_type'], }
182 end

Public Instance Methods

context() click to toggle source

Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context @return [ExportContext] ExportContext for this ExportInstance

    # File lib/twilio-ruby/rest/preview/bulk_exports/export.rb
188 def context
189   unless @instance_context
190     @instance_context = ExportContext.new(@version, @params['resource_type'], )
191   end
192   @instance_context
193 end
days() click to toggle source

Access the days @return [days] days

    # File lib/twilio-ruby/rest/preview/bulk_exports/export.rb
223 def days
224   context.days
225 end
export_custom_jobs() click to toggle source

Access the export_custom_jobs @return [export_custom_jobs] export_custom_jobs

    # File lib/twilio-ruby/rest/preview/bulk_exports/export.rb
230 def export_custom_jobs
231   context.export_custom_jobs
232 end
fetch() click to toggle source

Fetch the ExportInstance @return [ExportInstance] Fetched ExportInstance

    # File lib/twilio-ruby/rest/preview/bulk_exports/export.rb
216 def fetch
217   context.fetch
218 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/preview/bulk_exports/export.rb
243 def inspect
244   values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
245   "<Twilio.Preview.BulkExports.ExportInstance #{values}>"
246 end
resource_type() click to toggle source

@return [String] The type of communication – Messages, Calls, Conferences, and Participants

    # File lib/twilio-ruby/rest/preview/bulk_exports/export.rb
197 def resource_type
198   @properties['resource_type']
199 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/preview/bulk_exports/export.rb
236 def to_s
237   values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
238   "<Twilio.Preview.BulkExports.ExportInstance #{values}>"
239 end
url() click to toggle source

@return [String] The URL of this resource.

    # File lib/twilio-ruby/rest/preview/bulk_exports/export.rb
203 def url
204   @properties['url']
205 end