Class: Twilio::REST::Messaging::V1::TollfreeVerificationPage

Inherits:
Page
  • Object
show all
Defined in:
lib/twilio-ruby/rest/messaging/v1/tollfree_verification.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) ⇒ TollfreeVerificationPage

Initialize the TollfreeVerificationPage

Parameters:

  • Version that contains the resource

  • Response from the API

  • Path solution for the resource



491
492
493
494
495
496
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 491

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

    # Path Solution
    @solution = solution
end

Instance Method Details

#get_instance(payload) ⇒ TollfreeVerificationInstance

Build an instance of TollfreeVerificationInstance

Parameters:

  • Payload response from the API

Returns:

  • TollfreeVerificationInstance



502
503
504
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 502

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

#to_sObject

Provide a user friendly representation



508
509
510
# File 'lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb', line 508

def to_s
    '<Twilio.Messaging.V1.TollfreeVerificationPage>'
end