Sha256: eda6e24ab236e04b09652b9beedb8afaec7d678f155ed1c8f2c51698be0b8f1c

Contents?: true

Size: 294 Bytes

Versions: 6

Compression:

Stored size: 294 Bytes

Contents

module Strava
  module Models
    class SegmentStats < Model
      include Mixins::Time

      property 'pr_elapsed_time'
      property 'pr_date', transform_with: ->(v) { Date.parse(v) }
      property 'effort_count'

      def elapsed_time
        pr_elapsed_time
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
strava-ruby-client-0.4.2 lib/strava/models/segment_stats.rb
strava-ruby-client-0.4.1 lib/strava/models/segment_stats.rb
strava-ruby-client-0.4.0 lib/strava/models/segment_stats.rb
strava-ruby-client-0.3.2 lib/strava/models/segment_stats.rb
strava-ruby-client-0.3.1 lib/strava/models/segment_stats.rb
strava-ruby-client-0.3.0 lib/strava/models/segment_stats.rb