Class: RunKeeper::ActivityRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/run_keeper/activity_request.rb

Instance Method Summary collapse

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, options
  @runkeeper, @options = runkeeper, parse_options(options)
end

Instance Method Details

#get_activitiesObject



7
8
9
# File 'lib/run_keeper/activity_request.rb', line 7

def get_activities
  @options[:limit] ? limit_results(request) : request
end