Class: Drom::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/drom/client.rb

Instance Method Summary collapse

Instance Method Details

#get(url) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/drom/client.rb', line 9

def get(url)
  begin
    page = self.class.get(url)
    Nokogiri::HTML(page)
  rescue SocketError => e
    print "SocketError"
  end
end