class Twilio::REST::Notify::V1::ServiceContext::BindingPage

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 BindingPage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [BindingPage] BindingPage

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/notify/v1/service/binding.rb
220 def initialize(version, response, solution)
221   super(version, response)
222 
223   # Path Solution
224   @solution = solution
225 end

Public Instance Methods

get_instance(payload) click to toggle source

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

    # File lib/twilio-ruby/rest/notify/v1/service/binding.rb
231 def get_instance(payload)
232   BindingInstance.new(@version, payload, service_sid: @solution[:service_sid], )
233 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/notify/v1/service/binding.rb
237 def to_s
238   '<Twilio.Notify.V1.BindingPage>'
239 end