class Twilio::REST::Bulkexports::V1::ExportContext::DayContext

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/bulkexports/v1/export/day.rb
154 def initialize(version, resource_type, day)
155   super(version)
156 
157   # Path Solution
158   @solution = {resource_type: resource_type, day: day, }
159   @uri = "/Exports/#{@solution[:resource_type]}/Days/#{@solution[:day]}"
160 end

Public Instance Methods

fetch() click to toggle source

Fetch the DayInstance @return [DayInstance] Fetched DayInstance

    # File lib/twilio-ruby/rest/bulkexports/v1/export/day.rb
165 def fetch
166   payload = @version.fetch('GET', @uri)
167 
168   DayInstance.new(@version, payload, resource_type: @solution[:resource_type], day: @solution[:day], )
169 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/bulkexports/v1/export/day.rb
180 def inspect
181   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
182   "#<Twilio.Bulkexports.V1.DayContext #{context}>"
183 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/bulkexports/v1/export/day.rb
173 def to_s
174   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
175   "#<Twilio.Bulkexports.V1.DayContext #{context}>"
176 end