Class: Twilio::REST::Webhooks::V1::AuthProfileInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, auth_profile_instance, headers, status_code) ⇒ AuthProfileInstanceMetadata

Initializes a new AuthProfileInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}AuthProfileInstance] —

    auth_profile_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



496
497
498
499
# File 'lib/twilio-ruby/rest/webhooks/v1/auth_profile.rb', line 496

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

Instance Method Details

#auth_profile ⇒ Object



501
502
503
# File 'lib/twilio-ruby/rest/webhooks/v1/auth_profile.rb', line 501

def auth_profile
    @auth_profile_instance
end

#headers ⇒ Object



505
506
507
# File 'lib/twilio-ruby/rest/webhooks/v1/auth_profile.rb', line 505

def headers
    @headers
end

#status_code ⇒ Object



509
510
511
# File 'lib/twilio-ruby/rest/webhooks/v1/auth_profile.rb', line 509

def status_code
    @status_code
end

#to_s ⇒ Object



513
514
515
# File 'lib/twilio-ruby/rest/webhooks/v1/auth_profile.rb', line 513

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