Module: AuctionInterface

Included in:
Bigdeal
Defined in:
lib/auto_bidder/auction_interface.rb

Instance Method Summary collapse

Instance Method Details

#connect_to_auctionObject



70
71
72
73
74
75
# File 'lib/auto_bidder/auction_interface.rb', line 70

def connect_to_auction    
   unless signed_in?
  
  @last_reload = Time.now.to_i
  recalculate_next_reload_time
end

#start_monitoringObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/auto_bidder/auction_interface.rb', line 3

def start_monitoring
  while true do
    reload_if_necessary

    @hours = hours
    @mins = mins
    @secs = secs
    print_stats

    if @hours == 0 && @mins == 0 && @secs == @bid_secs && ok_to_bid
      place_bid
      sleep 10
    end
  end
end