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:



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

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



240
241
242
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 240

def auth_token_promotion
    @auth_token_promotion
end

#auth_token_promotion_instanceObject



159
160
161
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 159

def auth_token_promotion_instance
    @instance
end

#headersObject



244
245
246
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 244

def headers
  @headers
end

#status_codeObject



248
249
250
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 248

def status_code
  @status_code
end