Class: Beatr::Config
- Inherits:
-
Object
- Object
- Beatr::Config
- Defined in:
- lib/beatr.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#host ⇒ Object
Returns the value of attribute host.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #endpoint ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
42 43 44 |
# File 'lib/beatr.rb', line 42 def initialize @host = 'https://pulse.crevalle.io' end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
39 40 41 |
# File 'lib/beatr.rb', line 39 def api_key @api_key end |
#host ⇒ Object
Returns the value of attribute host.
40 41 42 |
# File 'lib/beatr.rb', line 40 def host @host end |
#name ⇒ Object
Returns the value of attribute name.
38 39 40 |
# File 'lib/beatr.rb', line 38 def name @name end |
Instance Method Details
#endpoint ⇒ Object
54 55 56 |
# File 'lib/beatr.rb', line 54 def endpoint '/beats' end |