Class: Twilio::REST::Sync::V1::ServiceContext::SyncMapContext::SyncMapItemListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Sync::V1::ServiceContext::SyncMapContext::SyncMapItemListResponse
- Defined in:
- lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ SyncMapItemListResponse
constructor
A new instance of SyncMapItemListResponse.
- #status_code ⇒ Object
- #sync_map_item ⇒ Object
- #sync_map_item_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ SyncMapItemListResponse
Returns a new instance of SyncMapItemListResponse.
510 511 512 513 514 515 516 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb', line 510 def initialize(version, payload, key) @sync_map_item_instance = payload.body[key].map do |data| SyncMapItemInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
603 604 605 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb', line 603 def headers @headers end |
#status_code ⇒ Object
607 608 609 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb', line 607 def status_code @status_code end |
#sync_map_item ⇒ Object
599 600 601 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb', line 599 def sync_map_item @sync_map_item end |
#sync_map_item_instance ⇒ Object
518 519 520 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb', line 518 def sync_map_item_instance @instance end |