Class: Twilio::REST::Oauth::V2::OauthAuthorizationServerListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Oauth::V2::OauthAuthorizationServerListResponse
- Defined in:
- lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ OauthAuthorizationServerListResponse
constructor
A new instance of OauthAuthorizationServerListResponse.
- #oauth_authorization_server ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ OauthAuthorizationServerListResponse
Returns a new instance of OauthAuthorizationServerListResponse.
149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 149 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] || [] if limit != :unset data_list = data_list[0, limit] end @oauth_authorization_server = data_list.map do |data| OauthAuthorizationServerInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
165 166 167 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 165 def headers @headers end |
#oauth_authorization_server ⇒ Object
161 162 163 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 161 def @oauth_authorization_server end |
#status_code ⇒ Object
169 170 171 |
# File 'lib/twilio-ruby/rest/oauth/v2/oauth_authorization_server.rb', line 169 def status_code @status_code end |