Class: Twilio::REST::Messaging::V3::MessageCostEstimatePage

Inherits:
Page
  • Object
show all
Defined in:
lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb

Constant Summary

Constants inherited from Page

Page::META_KEYS

Instance Method Summary collapse

Methods inherited from Page

#each, #load_page, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response

Constructor Details

#initialize(version, response, solution) ⇒ MessageCostEstimatePage

Initialize the MessageCostEstimatePage

Parameters:

  • version (Version) —

    Version that contains the resource

  • response (Response) —

    Response from the API

  • solution (Hash) —

    Path solution for the resource



110
111
112
113
114
115
116
# File 'lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb', line 110

def initialize(version, response, solution)
    super(version, response)
    

    # Path Solution
    @solution = solution
end

Instance Method Details

#get_instance(payload) ⇒ MessageCostEstimateInstance

Build an instance of MessageCostEstimateInstance

Parameters:

  • payload (Hash) —

    Payload response from the API

Returns:



122
123
124
# File 'lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb', line 122

def get_instance(payload)
    MessageCostEstimateInstance.new(@version, payload)
end

#to_s ⇒ Object

Provide a user friendly representation



128
129
130
# File 'lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb', line 128

def to_s
    '<Twilio.Messaging.V3.MessageCostEstimatePage>'
end