Class: Twilio::REST::Sync::V1::ServiceContext::SyncMapListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Sync::V1::ServiceContext::SyncMapListResponse
- Defined in:
- lib/twilio-ruby/rest/sync/v1/service/sync_map.rb,
lib/twilio-ruby/rest/sync/v1/service/sync_map.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ SyncMapListResponse
constructor
A new instance of SyncMapListResponse.
- #status_code ⇒ Object
- #sync_map ⇒ Object
- #sync_map_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ SyncMapListResponse
Returns a new instance of SyncMapListResponse.
484 485 486 487 488 489 490 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 484 def initialize(version, payload, key) @sync_map_instance = payload.body[key].map do |data| SyncMapInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
577 578 579 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 577 def headers @headers end |
#status_code ⇒ Object
581 582 583 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 581 def status_code @status_code end |
#sync_map ⇒ Object
573 574 575 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 573 def sync_map @sync_map end |
#sync_map_instance ⇒ Object
492 493 494 |
# File 'lib/twilio-ruby/rest/sync/v1/service/sync_map.rb', line 492 def sync_map_instance @instance end |