class Twilio::REST::Wireless::V1::SimContext::UsageRecordPage

Public Class Methods

new(version, response, solution) click to toggle source

Initialize the UsageRecordPage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [UsageRecordPage] UsageRecordPage

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb
160 def initialize(version, response, solution)
161   super(version, response)
162 
163   # Path Solution
164   @solution = solution
165 end

Public Instance Methods

get_instance(payload) click to toggle source

Build an instance of UsageRecordInstance @param [Hash] payload Payload response from the API @return [UsageRecordInstance] UsageRecordInstance

    # File lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb
171 def get_instance(payload)
172   UsageRecordInstance.new(@version, payload, sim_sid: @solution[:sim_sid], )
173 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb
177 def to_s
178   '<Twilio.Wireless.V1.UsageRecordPage>'
179 end