class Twilio::REST::Sync::V1::ServiceContext::SyncStreamPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the SyncStreamPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [SyncStreamPage] SyncStreamPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb 142 def initialize(version, response, solution) 143 super(version, response) 144 145 # Path Solution 146 @solution = solution 147 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of SyncStreamInstance
@param [Hash] payload Payload response from the API @return [SyncStreamInstance] SyncStreamInstance
# File lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb 153 def get_instance(payload) 154 SyncStreamInstance.new(@version, payload, service_sid: @solution[:service_sid], ) 155 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb 159 def to_s 160 '<Twilio.Sync.V1.SyncStreamPage>' 161 end