Class: Twilio::REST::Accounts::V1::AuthTokenPromotionInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, auth_token_promotion_instance, headers, status_code) ⇒ AuthTokenPromotionInstanceMetadata

Initializes a new AuthTokenPromotionInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}AuthTokenPromotionInstance] —

    auth_token_promotion_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



139
140
141
142
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 139

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

Instance Method Details

#auth_token_promotion ⇒ Object



144
145
146
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 144

def auth_token_promotion
    @auth_token_promotion_instance
end

#headers ⇒ Object



148
149
150
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 148

def headers
    @headers
end

#status_code ⇒ Object



152
153
154
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 152

def status_code
    @status_code
end

#to_s ⇒ Object



156
157
158
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 156

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