Class: Twilio::REST::Chat::V1::ServiceContext::UserListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Chat::V1::ServiceContext::UserListResponse
- Defined in:
- lib/twilio-ruby/rest/chat/v1/service/user.rb,
lib/twilio-ruby/rest/chat/v1/service/user.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ UserListResponse
constructor
A new instance of UserListResponse.
- #status_code ⇒ Object
- #user ⇒ Object
- #user_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ UserListResponse
Returns a new instance of UserListResponse.
468 469 470 471 472 473 474 |
# File 'lib/twilio-ruby/rest/chat/v1/service/user.rb', line 468 def initialize(version, payload, key) @user_instance = payload.body[key].map do |data| UserInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
561 562 563 |
# File 'lib/twilio-ruby/rest/chat/v1/service/user.rb', line 561 def headers @headers end |
#status_code ⇒ Object
565 566 567 |
# File 'lib/twilio-ruby/rest/chat/v1/service/user.rb', line 565 def status_code @status_code end |
#user ⇒ Object
557 558 559 |
# File 'lib/twilio-ruby/rest/chat/v1/service/user.rb', line 557 def user @user end |
#user_instance ⇒ Object
476 477 478 |
# File 'lib/twilio-ruby/rest/chat/v1/service/user.rb', line 476 def user_instance @instance end |