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.
421 422 423 424 425 426 427 |
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 421 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
514 515 516 |
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 514 def headers @headers end |
#role ⇒ Object
510 511 512 |
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 510 def role @role end |
#role_instance ⇒ Object
429 430 431 |
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 429 def role_instance @instance end |
#status_code ⇒ Object
518 519 520 |
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 518 def status_code @status_code end |