Class: Twilio::REST::Chat::V1::ServiceContext::RoleInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/chat/v1/service/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.



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

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

Instance Method Details

#headersObject



413
414
415
# File 'lib/twilio-ruby/rest/chat/v1/service/role.rb', line 413

def headers
    @headers
end

#roleObject



409
410
411
# File 'lib/twilio-ruby/rest/chat/v1/service/role.rb', line 409

def role
    @role_instance
end

#status_codeObject



417
418
419
# File 'lib/twilio-ruby/rest/chat/v1/service/role.rb', line 417

def status_code
    @status_code
end

#to_sObject



421
422
423
# File 'lib/twilio-ruby/rest/chat/v1/service/role.rb', line 421

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