class Twilio::REST::Preview::Sync::ServiceContext::SyncListContext::SyncListItemPage
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the SyncListItemPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [SyncListItemPage] SyncListItemPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb 157 def initialize(version, response, solution) 158 super(version, response) 159 160 # Path Solution 161 @solution = solution 162 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of SyncListItemInstance
@param [Hash] payload Payload response from the API @return [SyncListItemInstance] SyncListItemInstance
# File lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb 168 def get_instance(payload) 169 SyncListItemInstance.new( 170 @version, 171 payload, 172 service_sid: @solution[:service_sid], 173 list_sid: @solution[:list_sid], 174 ) 175 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb 179 def to_s 180 '<Twilio.Preview.Sync.SyncListItemPage>' 181 end