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 that contains the resource

  • auth_token_promotion_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



125
126
127
128
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 125

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_promotionObject



130
131
132
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 130

def auth_token_promotion
    @auth_token_promotion_instance
end

#headersObject



134
135
136
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 134

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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