Class: Twilio::REST::Conversations::V1::RoleListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Conversations::V1::RoleListResponse
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/role.rb,
lib/twilio-ruby/rest/conversations/v1/role.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ RoleListResponse
constructor
A new instance of RoleListResponse.
- #role ⇒ Object
- #role_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ RoleListResponse
Returns a new instance of RoleListResponse.
429 430 431 432 433 434 435 |
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 429 def initialize(version, payload, key) @role_instance = payload.body[key].map do |data| RoleInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
522 523 524 |
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 522 def headers @headers end |
#role ⇒ Object
518 519 520 |
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 518 def role @role end |
#role_instance ⇒ Object
437 438 439 |
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 437 def role_instance @instance end |
#status_code ⇒ Object
526 527 528 |
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 526 def status_code @status_code end |