Class: Twilio::REST::Accounts::V1::AuthTokenPromotionListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Accounts::V1::AuthTokenPromotionListResponse
- Defined in:
- lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb
Instance Method Summary collapse
- #auth_token_promotion_instance ⇒ Object
-
#initialize(version, payload, key) ⇒ AuthTokenPromotionListResponse
constructor
A new instance of AuthTokenPromotionListResponse.
Constructor Details
#initialize(version, payload, key) ⇒ AuthTokenPromotionListResponse
Returns a new instance of AuthTokenPromotionListResponse.
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_promotion_instance ⇒ Object
173 174 175 |
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 173 def auth_token_promotion_instance @instance end |