Module: Routemaster::Fetcher::ClassMethods

Included in:
Routemaster::Fetcher
Defined in:
lib/routemaster/fetcher.rb

Instance Method Summary collapse

Instance Method Details

#get(url, params: nil, headers: nil) ⇒ Object

Calls get with the same arguments on a memoized instance for the URL's host.



12
13
14
# File 'lib/routemaster/fetcher.rb', line 12

def get(url, params:nil, headers:nil)
  _connection_for(url).get(url, params:params, headers:headers)
end