class Twilio::REST::Preview::Sync::ServiceContext::SyncMapContext::SyncMapItemPage

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 SyncMapItemPage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [SyncMapItemPage] SyncMapItemPage

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb
158 def initialize(version, response, solution)
159   super(version, response)
160 
161   # Path Solution
162   @solution = solution
163 end

Public Instance Methods

get_instance(payload) click to toggle source

Build an instance of SyncMapItemInstance @param [Hash] payload Payload response from the API @return [SyncMapItemInstance] SyncMapItemInstance

    # File lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb
169 def get_instance(payload)
170   SyncMapItemInstance.new(
171       @version,
172       payload,
173       service_sid: @solution[:service_sid],
174       map_sid: @solution[:map_sid],
175   )
176 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb
180 def to_s
181   '<Twilio.Preview.Sync.SyncMapItemPage>'
182 end