Class: Bugloco::Configuration

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

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ Configuration

Returns a new instance of Configuration.



6
7
8
9
10
# File 'lib/bugloco/configuration.rb', line 6

def initialize(hash = {})
  super

  self.api_url = "https://bugloco.com/api/v1/notices.pb"
end

Instance Method Details

#configured?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/bugloco/configuration.rb', line 12

def configured?
  self.project_key && self.api_key
end