Class: Twilio::REST::Accounts::V1::AuthTokenPromotionListResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ AuthTokenPromotionListResponse

Returns a new instance of AuthTokenPromotionListResponse.

Parameters:



165
166
167
168
169
170
171
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 165

def initialize(version, payload, key)
   @auth_token_promotion_instance = payload.body[key].map do |data|
    AuthTokenPromotionInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#auth_token_promotionObject



254
255
256
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 254

def auth_token_promotion
    @auth_token_promotion
end

#auth_token_promotion_instanceObject



173
174
175
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 173

def auth_token_promotion_instance
    @instance
end

#headersObject



258
259
260
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 258

def headers
  @headers
end

#status_codeObject



262
263
264
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 262

def status_code
  @status_code
end