Class: Twilio::REST::Proxy::V1::ServiceListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Proxy::V1::ServiceListResponse
- Defined in:
- lib/twilio-ruby/rest/proxy/v1/service.rb,
lib/twilio-ruby/rest/proxy/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.
541 542 543 544 545 546 547 |
# File 'lib/twilio-ruby/rest/proxy/v1/service.rb', line 541 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
634 635 636 |
# File 'lib/twilio-ruby/rest/proxy/v1/service.rb', line 634 def headers @headers end |
#service ⇒ Object
630 631 632 |
# File 'lib/twilio-ruby/rest/proxy/v1/service.rb', line 630 def service @service end |
#service_instance ⇒ Object
549 550 551 |
# File 'lib/twilio-ruby/rest/proxy/v1/service.rb', line 549 def service_instance @instance end |
#status_code ⇒ Object
638 639 640 |
# File 'lib/twilio-ruby/rest/proxy/v1/service.rb', line 638 def status_code @status_code end |