Sha256: bb8da5aea2365c673fed41cc8c592870e9208d3314f82364f95133e1e69b6a53
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
module Strava module Models class Segment < Model include Mixins::MetricDistance include Mixins::Elevation include Mixins::Time property 'id' property 'resource_state' property 'name' property 'maximum_grade' property 'elevation_high' property 'elevation_low' property 'activity_type' property 'average_grade' property 'climb_category' property 'city' property 'state' property 'country' property 'start_latlng' property 'end_latlng' property 'start_latitude' property 'start_longitude' property 'end_latitude' property 'end_longitude' property 'private' property 'hazardous' property 'starred' property 'created_at', transform_with: ->(v) { Time.parse(v) } property 'updated_at', transform_with: ->(v) { Time.parse(v) } property 'map', transform_with: ->(v) { Strava::Models::Map.new(v) } property 'effort_count' property 'athlete_count' property 'star_count' property 'athlete_segment_stats', transform_with: ->(v) { Strava::Models::SegmentStats.new(v) } property 'pr_time' property 'athlete_pr_effort', transform_with: ->(v) { Strava::Models::SegmentEffort.new(v) } property 'starred_date', transform_with: ->(v) { Time.parse(v) } def elapsed_time pr_time end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
strava-ruby-client-0.3.0 | lib/strava/models/segment.rb |