Class: ESHQ::Configuration
- Inherits:
-
Object
- Object
- ESHQ::Configuration
- Defined in:
- lib/eshq/configuration.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/eshq/configuration.rb', line 5 def initialize @url = ENV["ESHQ_URL"] || 'https://app.eventsourcehq.com/' @key = ENV["ESHQ_KEY"] @secret = ENV["ESHQ_SECRET"] end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/eshq/configuration.rb', line 3 def key @key end |
#secret ⇒ Object
Returns the value of attribute secret.
3 4 5 |
# File 'lib/eshq/configuration.rb', line 3 def secret @secret end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/eshq/configuration.rb', line 3 def url @url end |