Class: WebPotato

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

Class Method Summary collapse

Class Method Details

.browseObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/web_potato.rb', line 8

def self.browse
  case Random.rand 3
  when 0
    NeinGag.top
  when 1
    Xkcd.random
  else
    Reddit.random
  end
end

.postObject



19
20
21
# File 'lib/web_potato.rb', line 19

def self.post
  EfBeeLib.post browse
end