class Twilio::REST::Chat::V2::ServiceContext::BindingPage

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/chat/v2/service/binding.rb
158 def initialize(version, response, solution)
159   super(version, response)
160 
161   # Path Solution
162   @solution = solution
163 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/chat/v2/service/binding.rb
169 def get_instance(payload)
170   BindingInstance.new(@version, payload, service_sid: @solution[:service_sid], )
171 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/chat/v2/service/binding.rb
175 def to_s
176   '<Twilio.Chat.V2.BindingPage>'
177 end