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

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/sync/v1/service/sync_map/sync_map_item.rb
196 def initialize(version, response, solution)
197   super(version, response)
198 
199   # Path Solution
200   @solution = solution
201 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/sync/v1/service/sync_map/sync_map_item.rb
207 def get_instance(payload)
208   SyncMapItemInstance.new(
209       @version,
210       payload,
211       service_sid: @solution[:service_sid],
212       map_sid: @solution[:map_sid],
213   )
214 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb
218 def to_s
219   '<Twilio.Sync.V1.SyncMapItemPage>'
220 end