Module: OpenGraphy::Uri

Defined in:
lib/open_graphy/uri.rb,
lib/open_graphy/fetcher.rb

Defined Under Namespace

Classes: BadUriError, Fetcher, RedirectLoopError

Class Method Summary collapse

Class Method Details

.fetch(uri) ⇒ Object



12
13
14
# File 'lib/open_graphy/uri.rb', line 12

def self.fetch(uri)
  Fetcher.new(uri).fetch
end

.open(uri_str) ⇒ Object



8
9
10
# File 'lib/open_graphy/uri.rb', line 8

def self.open(uri_str)
  fetch(uri_str).body
end