Class: ZombieCheck::Ping::PingSender

Inherits:
Object
  • Object
show all
Defined in:
lib/zombie_check/ping/ping_sender.rb

Direct Known Subclasses

NetPing, UnixPing

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host) ⇒ PingSender

Returns a new instance of PingSender.



7
8
9
10
# File 'lib/zombie_check/ping/ping_sender.rb', line 7

def initialize(host)
  @host = host
  @duration = nil
end

Instance Attribute Details

#durationObject

Returns the value of attribute duration.



5
6
7
# File 'lib/zombie_check/ping/ping_sender.rb', line 5

def duration
  @duration
end

#hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/zombie_check/ping/ping_sender.rb', line 5

def host
  @host
end

Instance Method Details

#sendObject



12
13
14
# File 'lib/zombie_check/ping/ping_sender.rb', line 12

def send
  raise "Not implemented"
end