Class: Fog::Rackspace::Identity::Credentials
- Inherits:
-
Collection
- Object
- Collection
- Fog::Rackspace::Identity::Credentials
- Defined in:
- lib/fog/rackspace/models/identity/credentials.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#user ⇒ Object
Returns the value of attribute user.
10 11 12 |
# File 'lib/fog/rackspace/models/identity/credentials.rb', line 10 def user @user end |
Instance Method Details
#all ⇒ Object
12 13 14 15 |
# File 'lib/fog/rackspace/models/identity/credentials.rb', line 12 def all requires :user load(retrieve_credentials) end |
#get(id) ⇒ Object
17 18 19 20 21 |
# File 'lib/fog/rackspace/models/identity/credentials.rb', line 17 def get(id) requires :user data = retrieve_credentials.find { |credential| credential['apiKey'] == id } data && new(data) end |