Class: ContextIO::OAuthProvider

Inherits:
Object
  • Object
show all
Includes:
API::Resource
Defined in:
lib/contextio/oauth_provider.rb

Overview

Represents a single OAuth provider for an account. You can use this to inspect or delete the provider. Most of the attributes are lazily loaded, meaning that the API won't get hit until you ask for an attribute the object doesn't already have (presumably from a previous API call).

Instance Attribute Summary collapse

Attributes included from API::Resource

#api_attributes, #primary_key, #resource_url

Instance Method Summary collapse

Instance Attribute Details

#provider_consumer_keyString (readonly)



20
# File 'lib/contextio/oauth_provider.rb', line 20

lazy_attributes :provider_consumer_key, :provider_consumer_secret, :type

#provider_consumer_secretString (readonly)



20
# File 'lib/contextio/oauth_provider.rb', line 20

lazy_attributes :provider_consumer_key, :provider_consumer_secret, :type

#typeString (readonly)



20
# File 'lib/contextio/oauth_provider.rb', line 20

lazy_attributes :provider_consumer_key, :provider_consumer_secret, :type

Instance Method Details

#deleteObject



25
26
27
# File 'lib/contextio/oauth_provider.rb', line 25

def delete
  api.request(:delete, resource_url)['success']
end