Class: Twilio::REST::Chat::V2::ServiceListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Chat::V2::ServiceListResponse
- Defined in:
- lib/twilio-ruby/rest/chat/v2/service.rb,
lib/twilio-ruby/rest/chat/v2/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.
669 670 671 672 673 674 675 |
# File 'lib/twilio-ruby/rest/chat/v2/service.rb', line 669 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
762 763 764 |
# File 'lib/twilio-ruby/rest/chat/v2/service.rb', line 762 def headers @headers end |
#service ⇒ Object
758 759 760 |
# File 'lib/twilio-ruby/rest/chat/v2/service.rb', line 758 def service @service end |
#service_instance ⇒ Object
677 678 679 |
# File 'lib/twilio-ruby/rest/chat/v2/service.rb', line 677 def service_instance @instance end |
#status_code ⇒ Object
766 767 768 |
# File 'lib/twilio-ruby/rest/chat/v2/service.rb', line 766 def status_code @status_code end |