Class: Crevalle::Pulse::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/crevalle/pulse.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_keyObject

Returns the value of attribute api_key.



42
43
44
# File 'lib/crevalle/pulse.rb', line 42

def api_key
  @api_key
end

#hostObject (readonly)

Returns the value of attribute host.



43
44
45
# File 'lib/crevalle/pulse.rb', line 43

def host
  @host
end

#nameObject

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

Returns:

  • (Boolean)


57
58
59
# File 'lib/crevalle/pulse.rb', line 57

def disabled?
  !!@disabled
end

#endpointObject



49
50
51
# File 'lib/crevalle/pulse.rb', line 49

def endpoint
  '/api/v1/beats'
end