Class: ESHQ::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/eshq/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#keyObject

Returns the value of attribute key.



3
4
5
# File 'lib/eshq/configuration.rb', line 3

def key
  @key
end

#secretObject

Returns the value of attribute secret.



3
4
5
# File 'lib/eshq/configuration.rb', line 3

def secret
  @secret
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/eshq/configuration.rb', line 3

def url
  @url
end