Class: Crevalle::Pulse::Config
- Inherits:
-
Object
- Object
- Crevalle::Pulse::Config
- Defined in:
- lib/crevalle/pulse.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #disabled=(d) ⇒ Object
- #disabled? ⇒ Boolean
- #endpoint ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
45 46 47 |
# File 'lib/crevalle/pulse.rb', line 45 def initialize @host = 'https://pulse.crevalle.io' end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
42 43 44 |
# File 'lib/crevalle/pulse.rb', line 42 def api_key @api_key end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
43 44 45 |
# File 'lib/crevalle/pulse.rb', line 43 def host @host end |
#name ⇒ Object
Returns the value of attribute name.
41 42 43 |
# File 'lib/crevalle/pulse.rb', line 41 def name @name end |
Instance Method Details
#disabled=(d) ⇒ Object
53 54 55 |
# File 'lib/crevalle/pulse.rb', line 53 def disabled= d @disabled = d end |
#disabled? ⇒ Boolean
57 58 59 |
# File 'lib/crevalle/pulse.rb', line 57 def disabled? !!@disabled end |
#endpoint ⇒ Object
49 50 51 |
# File 'lib/crevalle/pulse.rb', line 49 def endpoint '/api/v1/beats' end |