Class: RunKeeper::ActivityRequest
- Inherits:
-
Object
- Object
- RunKeeper::ActivityRequest
- Defined in:
- lib/run_keeper/activity_request.rb
Instance Method Summary collapse
- #get_activities ⇒ Object
-
#initialize(runkeeper, options) ⇒ ActivityRequest
constructor
A new instance of ActivityRequest.
Constructor Details
#initialize(runkeeper, options) ⇒ ActivityRequest
Returns a new instance of ActivityRequest.
3 4 5 |
# File 'lib/run_keeper/activity_request.rb', line 3 def initialize runkeeper, @runkeeper, @options = runkeeper, () end |
Instance Method Details
#get_activities ⇒ Object
7 8 9 |
# File 'lib/run_keeper/activity_request.rb', line 7 def get_activities @options[:limit] ? limit_results(request) : request end |