Class: Fuli::Rosi

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

Class Method Summary collapse

Class Method Details

.fetch(no) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/fuli/rosi.rb', line 6

def fetch(no)

  begin
    get_rosi_pic(no)
  rescue Timeout::Error => err
    puts "Timeout"
    return
  rescue OpenURI::HTTPError => err
    puts "Finish!"
    return
  end
end