Class: Twilio::REST::Iam::V1::OAuthAppListResponse

Inherits:
Twilio::REST::InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/iam/v1/o_auth_app.rb,
lib/twilio-ruby/rest/iam/v1/o_auth_app.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ OAuthAppListResponse

Returns a new instance of OAuthAppListResponse.

Parameters:

  • instance (Array<OAuthAppInstance>)
  • headers (Hash{String => Object})
  • status_code (Integer)


388
389
390
391
392
393
394
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 388

def initialize(version, payload, key)
   @o_auth_app_instance = payload.body[key].map do |data|
    OAuthAppInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headersObject



481
482
483
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 481

def headers
  @headers
end

#o_auth_appObject



477
478
479
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 477

def o_auth_app
    @o_auth_app
end

#o_auth_app_instanceObject



396
397
398
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 396

def o_auth_app_instance
    @instance
end

#status_codeObject



485
486
487
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 485

def status_code
  @status_code
end