Class: Twilio::REST::Conversations::V1::UserListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Conversations::V1::UserListResponse
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/user.rb,
lib/twilio-ruby/rest/conversations/v1/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.
473 474 475 476 477 478 479 |
# File 'lib/twilio-ruby/rest/conversations/v1/user.rb', line 473 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
566 567 568 |
# File 'lib/twilio-ruby/rest/conversations/v1/user.rb', line 566 def headers @headers end |
#status_code ⇒ Object
570 571 572 |
# File 'lib/twilio-ruby/rest/conversations/v1/user.rb', line 570 def status_code @status_code end |
#user ⇒ Object
562 563 564 |
# File 'lib/twilio-ruby/rest/conversations/v1/user.rb', line 562 def user @user end |
#user_instance ⇒ Object
481 482 483 |
# File 'lib/twilio-ruby/rest/conversations/v1/user.rb', line 481 def user_instance @instance end |