Class: Twilio::REST::Api::V2010::AccountContext::KeyInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/api/v2010/account/key.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, key_instance, headers, status_code) ⇒ KeyInstanceMetadata

Initializes a new KeyInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}KeyInstance]

    key_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



342
343
344
345
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 342

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

Instance Method Details

#headersObject



351
352
353
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 351

def headers
    @headers
end

#keyObject



347
348
349
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 347

def key
    @key_instance
end

#status_codeObject



355
356
357
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 355

def status_code
    @status_code
end

#to_sObject



359
360
361
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 359

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