class Twilio::REST::Supersim::V1::SimContext::BillingPeriodPage

Public Class Methods

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

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

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb
122 def initialize(version, response, solution)
123   super(version, response)
124 
125   # Path Solution
126   @solution = solution
127 end

Public Instance Methods

get_instance(payload) click to toggle source

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

    # File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb
133 def get_instance(payload)
134   BillingPeriodInstance.new(@version, payload, sim_sid: @solution[:sim_sid], )
135 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb
139 def to_s
140   '<Twilio.Supersim.V1.BillingPeriodPage>'
141 end