Class: Twilio::REST::Oauth::V2::AuthorizeListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Oauth::V2::AuthorizeListResponse
- Defined in:
- lib/twilio-ruby/rest/oauth/v2/authorize.rb
Instance Method Summary collapse
- #authorize ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ AuthorizeListResponse
constructor
A new instance of AuthorizeListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ AuthorizeListResponse
Returns a new instance of AuthorizeListResponse.
197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/twilio-ruby/rest/oauth/v2/authorize.rb', line 197 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] || [] if limit != :unset data_list = data_list[0, limit] end @authorize = data_list.map do |data| AuthorizeInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#authorize ⇒ Object
209 210 211 |
# File 'lib/twilio-ruby/rest/oauth/v2/authorize.rb', line 209 def @authorize end |
#headers ⇒ Object
213 214 215 |
# File 'lib/twilio-ruby/rest/oauth/v2/authorize.rb', line 213 def headers @headers end |
#status_code ⇒ Object
217 218 219 |
# File 'lib/twilio-ruby/rest/oauth/v2/authorize.rb', line 217 def status_code @status_code end |