Class: Forecast::API::Aggregates

Inherits:
Base
  • Object
show all
Defined in:
lib/forecast/api/aggregates.rb

Instance Attribute Summary

Attributes inherited from Base

#credentials

Instance Method Summary collapse

Methods inherited from Base

api_model, #initialize

Constructor Details

This class inherits a constructor from Forecast::API::Base

Instance Method Details

#future_scheduled_hours_after(date_string, query = {}) ⇒ Object



6
7
8
9
10
# File 'lib/forecast/api/aggregates.rb', line 6

def future_scheduled_hours_after(date_string, query={})
  url = "#{api_model.api_path}/future_scheduled_hours/#{date_string}"
  response = request(:get, credentials, url, :query => query)
  api_model.parse(response.parsed_response)
end

#remaining_budgeted_hours(query = {}) ⇒ Object



12
13
14
15
16
# File 'lib/forecast/api/aggregates.rb', line 12

def remaining_budgeted_hours(query={})
  url = "#{api_model.api_path}/remaining_budgeted_hours"
  response = request(:get, credentials, url, :query => query)
  api_model.parse(response.parsed_response)
end