Module: Checkdin::WonRewards
- Included in:
- Client
- Defined in:
- lib/checkdin/won_rewards.rb
Instance Method Summary collapse
-
#won_reward(id) ⇒ Object
Retrieve information about a won reward.
-
#won_rewards(options = {}) ⇒ Object
Get a list of all won rewards for the authenticating client.
Instance Method Details
#won_reward(id) ⇒ Object
Retrieve information about a won reward
param [Integer] id The ID of the reward
8 9 10 11 |
# File 'lib/checkdin/won_rewards.rb', line 8 def won_reward(id) response = connection.get("won_rewards/#{id}") return_error_or_body(response) end |
#won_rewards(options = {}) ⇒ Object
Get a list of all won rewards for the authenticating client.
21 22 23 24 25 26 |
# File 'lib/checkdin/won_rewards.rb', line 21 def won_rewards(={}) response = connection.get do |req| req.url "won_rewards", end return_error_or_body(response) end |