Method: OpenGraphReader::Fetcher#fetch

Defined in:
lib/open_graph_reader/fetcher.rb

#fetchFaraday::Response? Also known as: fetch_body

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Fetch the full page.

Returns:

  • (Faraday::Response, nil)


50
51
52
53
54
# File 'lib/open_graph_reader/fetcher.rb', line 50

def fetch
  @get_response = @connection.get(@uri)
rescue Faraday::Error
  @fetch_failed = true
end