Class: Twilio::REST::Conversations::V1::RoleInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/conversations/v1/role.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, role_instance, headers, status_code) ⇒ RoleInstanceMetadata

Initializes a new RoleInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}RoleInstance] —

    role_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



403
404
405
406
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 403

def initialize(version, role_instance, headers, status_code)
    super(version, headers, status_code)
    @role_instance = role_instance
end

Instance Method Details

#headers ⇒ Object



412
413
414
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 412

def headers
    @headers
end

#role ⇒ Object



408
409
410
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 408

def role
    @role_instance
end

#status_code ⇒ Object



416
417
418
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 416

def status_code
    @status_code
end

#to_s ⇒ Object



420
421
422
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 420

def to_s
  "<Twilio.Api.V2010.RoleInstanceMetadata status=#{@status_code}>"
end