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,
lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb
Instance Method Summary collapse
- #auth_token_promotion ⇒ Object
- #auth_token_promotion_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ AuthTokenPromotionListResponse
constructor
A new instance of AuthTokenPromotionListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ 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 ⇒ Object
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_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 |
#headers ⇒ Object
258 259 260 |
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 258 def headers @headers end |
#status_code ⇒ Object
262 263 264 |
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 262 def status_code @status_code end |