Module: Readmill::Client::Periods

Included in:
Readmill::Client
Defined in:
lib/readmill/client/periods.rb

Overview

Public: This module will bring all of the methods from the period section of the API.

Instance Method Summary collapse

Instance Method Details

#periods(reading_id, opts = {}) ⇒ Object

Public: Get periods for a reading from readmill.

reading_id - An id of the reading to get periods for. opts - A Hash of options used to modify the results. All of the

values of this Hash will be forwarded to the API as
parameters (default: {}).

Returns an Array.



16
17
18
# File 'lib/readmill/client/periods.rb', line 16

def periods(reading_id, opts={})
  get("readings/#{reading_id}/periods", opts).items
end