class Twilio::REST::Sync::V1::ServiceContext::SyncStreamContext::StreamMessagePage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the StreamMessagePage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [StreamMessagePage] StreamMessagePage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb 65 def initialize(version, response, solution) 66 super(version, response) 67 68 # Path Solution 69 @solution = solution 70 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of StreamMessageInstance
@param [Hash] payload Payload response from the API @return [StreamMessageInstance] StreamMessageInstance
# File lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb 76 def get_instance(payload) 77 StreamMessageInstance.new( 78 @version, 79 payload, 80 service_sid: @solution[:service_sid], 81 stream_sid: @solution[:stream_sid], 82 ) 83 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb 87 def to_s 88 '<Twilio.Sync.V1.StreamMessagePage>' 89 end