Class: Twilio::REST::Iam::V1::OAuthAppInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, o_auth_app_instance, headers, status_code) ⇒ OAuthAppInstanceMetadata

Initializes a new OAuthAppInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}OAuthAppInstance] —

    o_auth_app_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



362
363
364
365
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 362

def initialize(version, o_auth_app_instance, headers, status_code)
    super(version, headers, status_code)
    @o_auth_app_instance = o_auth_app_instance
end

Instance Method Details

#headers ⇒ Object



371
372
373
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 371

def headers
    @headers
end

#o_auth_app ⇒ Object



367
368
369
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 367

def o_auth_app
    @o_auth_app_instance
end

#status_code ⇒ Object



375
376
377
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 375

def status_code
    @status_code
end

#to_s ⇒ Object



379
380
381
# File 'lib/twilio-ruby/rest/iam/v1/o_auth_app.rb', line 379

def to_s
  "<Twilio.Api.V2010.OAuthAppInstanceMetadata status=#{@status_code}>"
end