Class: Bugloco::Configuration
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Bugloco::Configuration
- Defined in:
- lib/bugloco/configuration.rb
Instance Method Summary collapse
- #configured? ⇒ Boolean
-
#initialize(hash = {}) ⇒ Configuration
constructor
A new instance of Configuration.
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
12 13 14 |
# File 'lib/bugloco/configuration.rb', line 12 def configured? self.project_key && self.api_key end |