Class: ContextIO::OAuthProvider
- Inherits:
-
Object
- Object
- ContextIO::OAuthProvider
- 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
-
#provider_consumer_key ⇒ String
readonly
The consumer key associated with this provider.
-
#provider_consumer_secret ⇒ String
readonly
The consumer secret associated with this provider.
-
#type ⇒ String
readonly
The consumer key associated with this provider.
Attributes included from API::Resource
#api_attributes, #primary_key, #resource_url
Instance Method Summary collapse
Instance Attribute Details
#provider_consumer_key ⇒ String (readonly)
Returns The consumer key associated with this provider. Will fetch from the API if necessary.
20 |
# File 'lib/contextio/oauth_provider.rb', line 20 lazy_attributes :provider_consumer_key, :provider_consumer_secret, :type |
#provider_consumer_secret ⇒ String (readonly)
Returns The consumer secret associated with this provider. Will fetch from the API if necessary.
20 |
# File 'lib/contextio/oauth_provider.rb', line 20 lazy_attributes :provider_consumer_key, :provider_consumer_secret, :type |
#type ⇒ String (readonly)
Returns The consumer key associated with this provider. Will fetch from the API if necessary.
20 |
# File 'lib/contextio/oauth_provider.rb', line 20 lazy_attributes :provider_consumer_key, :provider_consumer_secret, :type |
Instance Method Details
#delete ⇒ Object
25 26 27 |
# File 'lib/contextio/oauth_provider.rb', line 25 def delete api.request(:delete, resource_url)['success'] end |