class Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::WebhookPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the WebhookPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [WebhookPage] WebhookPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb 166 def initialize(version, response, solution) 167 super(version, response) 168 169 # Path Solution 170 @solution = solution 171 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of WebhookInstance
@param [Hash] payload Payload response from the API @return [WebhookInstance] WebhookInstance
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb 177 def get_instance(payload) 178 WebhookInstance.new( 179 @version, 180 payload, 181 chat_service_sid: @solution[:chat_service_sid], 182 conversation_sid: @solution[:conversation_sid], 183 ) 184 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb 188 def to_s 189 '<Twilio.Conversations.V1.WebhookPage>' 190 end