Class: Twilio::REST::Chat::V2::ServiceContext::UserListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Chat::V2::ServiceContext::UserListResponse
- Defined in:
- lib/twilio-ruby/rest/chat/v2/service/user.rb,
lib/twilio-ruby/rest/chat/v2/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.
504 505 506 507 508 509 510 |
# File 'lib/twilio-ruby/rest/chat/v2/service/user.rb', line 504 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
597 598 599 |
# File 'lib/twilio-ruby/rest/chat/v2/service/user.rb', line 597 def headers @headers end |
#status_code ⇒ Object
601 602 603 |
# File 'lib/twilio-ruby/rest/chat/v2/service/user.rb', line 601 def status_code @status_code end |
#user ⇒ Object
593 594 595 |
# File 'lib/twilio-ruby/rest/chat/v2/service/user.rb', line 593 def user @user end |
#user_instance ⇒ Object
512 513 514 |
# File 'lib/twilio-ruby/rest/chat/v2/service/user.rb', line 512 def user_instance @instance end |