Class: TinyZap::Configuration
- Inherits:
-
Object
- Object
- TinyZap::Configuration
- Defined in:
- lib/tinyzap/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/tinyzap/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/tinyzap/configuration.rb', line 3 def secret_key @secret_key end |
Instance Method Details
#load_env ⇒ Object
13 14 15 16 |
# File 'lib/tinyzap/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/tinyzap/configuration.rb', line 9 def load_public_key_env self.public_key = ENV["TINYZAP_PUBLIC_KEY"] end |
#load_secret_key_env ⇒ Object
5 6 7 |
# File 'lib/tinyzap/configuration.rb', line 5 def load_secret_key_env self.secret_key = ENV["TINYZAP_SECRET_KEY"] end |