Class: Harvest::API::Account
- Inherits:
-
Base
- Object
- Base
- Harvest::API::Account
- Defined in:
- lib/forecast/api/account.rb
Overview
API Methods to contain all account actions
Instance Method Summary collapse
-
#rate_limit_status ⇒ Harvest::RateLimitStatus
Returns the current rate limit information.
-
#who_am_i ⇒ Harvest::User
Returns the current logged in user.
Instance Method Details
#rate_limit_status ⇒ Harvest::RateLimitStatus
Returns the current rate limit information
9 10 11 12 |
# File 'lib/forecast/api/account.rb', line 9 def rate_limit_status response = request(:get, credentials, '/account/rate_limit_status') Harvest::RateLimitStatus.parse(response.body).first end |
#who_am_i ⇒ Harvest::User
Returns the current logged in user
16 17 18 19 |
# File 'lib/forecast/api/account.rb', line 16 def who_am_i response = request(:get, credentials, '/account/who_am_i') Harvest::User.parse(response.body).first end |