Module: Twelve::API::Gauges::Resolutions

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

Overview

The Resolutions module handles accessing screen resolutions

Instance Method Summary collapse

Instance Method Details

#resolutions(date = nil) ⇒ Object

Returns monthly screen sizes for a gauge

date - String of date

Returns json



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

def resolutions(date=nil)
  attributes = {}

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