Method: WFA::Heartbeat#initialize

Defined in:
lib/wfa/heartbeat.rb

#initialize(attrs) ⇒ Heartbeat

Returns a new instance of Heartbeat.



5
6
7
8
9
# File 'lib/wfa/heartbeat.rb', line 5

def initialize attrs
  @ip_addr =  attrs[:ip_addr]
  @active_nodes =  attrs[:active_nodes]
  @created_at =  Time.parse(attrs[:created_at])
end