class Strava::Models::Activity
Public Instance Methods
distance_s()
click to toggle source
# File lib/strava/models/activity.rb, line 79 def distance_s if type == 'Swim' distance_in_meters_s else distance_in_kilometers_s end end
pace_s()
click to toggle source
# File lib/strava/models/activity.rb, line 87 def pace_s case type when 'Swim' pace_per_100_meters_s else pace_per_kilometer_s end end
strava_url()
click to toggle source
# File lib/strava/models/activity.rb, line 96 def strava_url "https://www.strava.com/activities/#{id}" end
type_emoji()
click to toggle source
# File lib/strava/models/activity.rb, line 100 def type_emoji case type when 'Run' then 'π' when 'Ride' then 'π΄' when 'Swim' then 'π' when 'Walk' then 'πΆ' when 'AlpineSki' then 'β·οΈ' when 'BackcountrySki' then 'πΏοΈ' # when 'Canoeing' then '' # when 'Crossfit' then '' when 'EBikeRide' then 'π΄' # when 'Elliptical' then '' # when 'Hike' then '' when 'IceSkate' then 'βΈοΈ' # when 'InlineSkate' then '' # when 'Kayaking' then '' # when 'Kitesurf' then '' # when 'NordicSki' then '' when 'RockClimbing' then 'π§' when 'RollerSki' then '' when 'Rowing' then 'π£' when 'Snowboard' then 'π' # when 'Snowshoe' then '' # when 'StairStepper' then '' # when 'StandUpPaddling' then '' when 'Surfing' then 'π' when 'VirtualRide' then 'π΄' when 'VirtualRun' then 'π' when 'WeightTraining' then 'ποΈ' # when 'Windsurf' then '' when 'Wheelchair' then 'βΏ' # when 'Workout' then '' # when 'Yoga'' then '' end end