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.
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_promotion ⇒ Object
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_instance ⇒ Object
159 160 161 |
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 159 def auth_token_promotion_instance @instance end |
#headers ⇒ Object
244 245 246 |
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 244 def headers @headers end |
#status_code ⇒ Object
248 249 250 |
# File 'lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb', line 248 def status_code @status_code end |