Class: Glass::ApiKeys
- Inherits:
-
Object
- Object
- Glass::ApiKeys
- Defined in:
- lib/glass/api_keys.rb
Overview
just a small class to organize the api key logic info from the yml file in config.
Defined Under Namespace
Classes: APIKeyConfigurationError, YAMLDoesNotHaveTheRightKeysForExtraction
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#google_api_keys ⇒ Object
Returns the value of attribute google_api_keys.
-
#keys ⇒ Object
Returns the value of attribute keys.
-
#yaml_config ⇒ Object
Returns the value of attribute yaml_config.
-
#yaml_file_contents ⇒ Object
Returns the value of attribute yaml_file_contents.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ApiKeys
constructor
A new instance of ApiKeys.
Constructor Details
#initialize ⇒ ApiKeys
Returns a new instance of ApiKeys.
9 10 11 12 13 14 15 |
# File 'lib/glass/api_keys.rb', line 9 def initialize self.google_api_keys = {} preload_yaml_file_keys load_google_keys_from_whereever load_keys return self.keys end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
8 9 10 |
# File 'lib/glass/api_keys.rb', line 8 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
8 9 10 |
# File 'lib/glass/api_keys.rb', line 8 def client_secret @client_secret end |
#google_api_keys ⇒ Object
Returns the value of attribute google_api_keys.
8 9 10 |
# File 'lib/glass/api_keys.rb', line 8 def google_api_keys @google_api_keys end |
#keys ⇒ Object
Returns the value of attribute keys.
8 9 10 |
# File 'lib/glass/api_keys.rb', line 8 def keys @keys end |
#yaml_config ⇒ Object
Returns the value of attribute yaml_config.
8 9 10 |
# File 'lib/glass/api_keys.rb', line 8 def yaml_config @yaml_config end |
#yaml_file_contents ⇒ Object
Returns the value of attribute yaml_file_contents.
8 9 10 |
# File 'lib/glass/api_keys.rb', line 8 def yaml_file_contents @yaml_file_contents end |