class Twilio::REST::Preview::BulkExports::ExportContext::DayContext

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, resource_type, day) click to toggle source

Initialize the DayContext @param [Version] version Version that contains the resource @param [String] resource_type The type of communication – Messages, Calls,

Conferences, and Participants

@param [String] day The ISO 8601 format date of the resources in the file, for a

UTC day

@return [DayContext] DayContext

Calls superclass method Twilio::REST::InstanceContext::new
    # File lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb
160 def initialize(version, resource_type, day)
161   super(version)
162 
163   # Path Solution
164   @solution = {resource_type: resource_type, day: day, }
165   @uri = "/Exports/#{@solution[:resource_type]}/Days/#{@solution[:day]}"
166 end

Public Instance Methods

fetch() click to toggle source

Fetch the DayInstance @return [DayInstance] Fetched DayInstance

    # File lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb
171 def fetch
172   payload = @version.fetch('GET', @uri)
173 
174   DayInstance.new(@version, payload, resource_type: @solution[:resource_type], day: @solution[:day], )
175 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb
186 def inspect
187   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
188   "#<Twilio.Preview.BulkExports.DayContext #{context}>"
189 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb
179 def to_s
180   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
181   "#<Twilio.Preview.BulkExports.DayContext #{context}>"
182 end