Class: Imageomatic::Configuration
- Inherits:
-
Object
- Object
- Imageomatic::Configuration
- Defined in:
- lib/imageomatic/configuration.rb
Instance Attribute Summary collapse
-
#public_key ⇒ Object
Returns the value of attribute public_key.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
Instance Method Summary collapse
Instance Attribute Details
#public_key ⇒ Object
Returns the value of attribute public_key.
3 4 5 |
# File 'lib/imageomatic/configuration.rb', line 3 def public_key @public_key end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
3 4 5 |
# File 'lib/imageomatic/configuration.rb', line 3 def secret_key @secret_key end |
Instance Method Details
#load_env ⇒ Object
13 14 15 16 |
# File 'lib/imageomatic/configuration.rb', line 13 def load_env load_secret_key_env load_public_key_env end |
#load_public_key_env ⇒ Object
9 10 11 |
# File 'lib/imageomatic/configuration.rb', line 9 def load_public_key_env self.public_key = ENV["IMAGEOMATIC_PUBLIC_KEY"] end |
#load_secret_key_env ⇒ Object
5 6 7 |
# File 'lib/imageomatic/configuration.rb', line 5 def load_secret_key_env self.secret_key = ENV["IMAGEOMATIC_SECRET_KEY"] end |