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.



395
396
397
398
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 395

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

Instance Method Details

#headersObject



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

def headers
    @headers
end

#roleObject



400
401
402
# File 'lib/twilio-ruby/rest/conversations/v1/role.rb', line 400

def role
    @role_instance
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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