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)


382
383
384
385
386
387
388
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 382

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



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

def headers
  @headers
end

#o_auth_appObject



471
472
473
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 471

def o_auth_app
    @o_auth_app
end

#o_auth_app_instanceObject



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

def o_auth_app_instance
    @instance
end

#status_codeObject



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

def status_code
  @status_code
end