Class: Twilio::REST::Sync::V1::ServiceListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Sync::V1::ServiceListResponse
- Defined in:
- lib/twilio-ruby/rest/sync/v1/service.rb,
lib/twilio-ruby/rest/sync/v1/service.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ ServiceListResponse
constructor
A new instance of ServiceListResponse.
- #service ⇒ Object
- #service_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ ServiceListResponse
Returns a new instance of ServiceListResponse.
561 562 563 564 565 566 567 |
# File 'lib/twilio-ruby/rest/sync/v1/service.rb', line 561 def initialize(version, payload, key) @service_instance = payload.body[key].map do |data| ServiceInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
654 655 656 |
# File 'lib/twilio-ruby/rest/sync/v1/service.rb', line 654 def headers @headers end |
#service ⇒ Object
650 651 652 |
# File 'lib/twilio-ruby/rest/sync/v1/service.rb', line 650 def service @service end |
#service_instance ⇒ Object
569 570 571 |
# File 'lib/twilio-ruby/rest/sync/v1/service.rb', line 569 def service_instance @instance end |
#status_code ⇒ Object
658 659 660 |
# File 'lib/twilio-ruby/rest/sync/v1/service.rb', line 658 def status_code @status_code end |