Class: Cloudability::Credentials
- Inherits:
-
Object
- Object
- Cloudability::Credentials
- Includes:
- HTTParty
- Defined in:
- lib/cloudability/credentials.rb
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
Instance Method Summary collapse
- #find_all ⇒ Object
-
#initialize(options = {}) ⇒ Credentials
constructor
A new instance of Credentials.
Constructor Details
#initialize(options = {}) ⇒ Credentials
Returns a new instance of Credentials.
9 10 11 12 |
# File 'lib/cloudability/credentials.rb', line 9 def initialize(={}) raise ArgumentError, "You must provide an auth token" if [:auth_token].nil? @auth_token = [:auth_token] end |
Instance Attribute Details
#auth_token ⇒ Object
Returns the value of attribute auth_token.
7 8 9 |
# File 'lib/cloudability/credentials.rb', line 7 def auth_token @auth_token end |
Instance Method Details
#find_all ⇒ Object
14 15 16 |
# File 'lib/cloudability/credentials.rb', line 14 def find_all convert_to_mashes(get_credentials) end |