Class: Twilio::REST::Webhooks::V1::SharedKeyInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, shared_key_instance, headers, status_code) ⇒ SharedKeyInstanceMetadata

Initializes a new SharedKeyInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}SharedKeyInstance] —

    shared_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.



442
443
444
445
# File 'lib/twilio-ruby/rest/webhooks/v1/shared_key.rb', line 442

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

Instance Method Details

#headers ⇒ Object



451
452
453
# File 'lib/twilio-ruby/rest/webhooks/v1/shared_key.rb', line 451

def headers
    @headers
end

#shared_key ⇒ Object



447
448
449
# File 'lib/twilio-ruby/rest/webhooks/v1/shared_key.rb', line 447

def shared_key
    @shared_key_instance
end

#status_code ⇒ Object



455
456
457
# File 'lib/twilio-ruby/rest/webhooks/v1/shared_key.rb', line 455

def status_code
    @status_code
end

#to_s ⇒ Object



459
460
461
# File 'lib/twilio-ruby/rest/webhooks/v1/shared_key.rb', line 459

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