class Twilio::REST::Sync::V1::ServiceContext::SyncListContext::SyncListItemPage
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/sync/v1/service/sync_list/sync_list_item.rb 187 def initialize(version, response, solution) 188 super(version, response) 189 190 # Path Solution 191 @solution = solution 192 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/sync/v1/service/sync_list/sync_list_item.rb 198 def get_instance(payload) 199 SyncListItemInstance.new( 200 @version, 201 payload, 202 service_sid: @solution[:service_sid], 203 list_sid: @solution[:list_sid], 204 ) 205 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb 209 def to_s 210 '<Twilio.Sync.V1.SyncListItemPage>' 211 end