Class: DynDynDong::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/dyndyndong/client.rb

Class Method Summary collapse

Class Method Details

.startObject



26
27
28
29
30
# File 'lib/dyndyndong/client.rb', line 26

def self.start
  DynDynDong::Service.each {|s|
    s.fetch
  }
end

.start_loopObject



32
33
34
35
36
37
# File 'lib/dyndyndong/client.rb', line 32

def self.start_loop
  while true
    self.start
    sleep DynDynDong.delay
  end
end