Module: Twelve::API::Gauges::Engines

Included in:
Proxy
Defined in:
lib/twelve/api/gauges/engines.rb

Overview

The Engines module handles accessing search engines

Instance Method Summary collapse

Instance Method Details

#engines(date = nil) ⇒ Object

Returns monthly engines for a gauge

date - String of date

Returns json



21
22
23
24
25
26
27
28
# File 'lib/twelve/api/gauges/engines.rb', line 21

def engines(date=nil)
  attributes = {}

  connection.get do |request|
    request.url "#{path_prefix}/engines"
    request.params['date'] = date if date && date.is_a?(String)
  end.body
end