class Twilio::REST::IpMessaging::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/ip_messaging/v2/service/binding.rb 135 def initialize(version, response, solution) 136 super(version, response) 137 138 # Path Solution 139 @solution = solution 140 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/ip_messaging/v2/service/binding.rb 146 def get_instance(payload) 147 BindingInstance.new(@version, payload, service_sid: @solution[:service_sid], ) 148 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb 152 def to_s 153 '<Twilio.IpMessaging.V2.BindingPage>' 154 end