Class: NexaasID::Client::Identity
- Defined in:
- lib/nexaas_id/client/identity.rb
Overview
Nexaas ID Client for resources owned by an Identity
- API
-
Documentation:
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
Instance Method Summary collapse
-
#initialize(credentials, config = nil) ⇒ Identity
constructor
Creates an instance of this client.
-
#profile ⇒ NexaasID::Resources::Profile
Provides a Profile resource.
-
#widget ⇒ NexaasID::Resources::Widget
Provides a Widget resource.
Methods inherited from Base
Constructor Details
#initialize(credentials, config = nil) ⇒ Identity
Creates an instance of this client.
22 23 24 25 26 |
# File 'lib/nexaas_id/client/identity.rb', line 22 def initialize(credentials, config = nil) super(config) @credentials = credentials @token = NexaasID::Client::ExceptionWrapper.new(OAuth2::AccessToken.from_hash(client, hash)) end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
13 14 15 |
# File 'lib/nexaas_id/client/identity.rb', line 13 def credentials @credentials end |
Instance Method Details
#profile ⇒ NexaasID::Resources::Profile
Provides a Profile resource.
30 31 32 |
# File 'lib/nexaas_id/client/identity.rb', line 30 def profile NexaasID::Resources::Profile.new(api_token, config) end |
#widget ⇒ NexaasID::Resources::Widget
Provides a Widget resource.
36 37 38 |
# File 'lib/nexaas_id/client/identity.rb', line 36 def NexaasID::Resources::Widget.new(api_token, config) end |