class Twilio::REST::Messaging::V1::ServiceContext::UsAppToPersonUsecasePage

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Public Class Methods

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

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

Calls superclass method Twilio::REST::Page::new
   # File lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
64 def initialize(version, response, solution)
65   super(version, response)
66 
67   # Path Solution
68   @solution = solution
69 end

Public Instance Methods

get_instance(payload) click to toggle source

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

   # File lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
75 def get_instance(payload)
76   UsAppToPersonUsecaseInstance.new(
77       @version,
78       payload,
79       messaging_service_sid: @solution[:messaging_service_sid],
80   )
81 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
85 def to_s
86   '<Twilio.Messaging.V1.UsAppToPersonUsecasePage>'
87 end