Sha256: da9eb22eee51f295c6f0f27d67c650b2fe4ba2c8e7926561f9d23389d7a843a4

Contents?: true

Size: 344 Bytes

Versions: 6

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

module Strava
  module Models
    class SegmentStats < Strava::Models::Response
      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-2.2.0 lib/strava/models/segment_stats.rb
strava-ruby-client-2.1.0 lib/strava/models/segment_stats.rb
strava-ruby-client-2.0.0 lib/strava/models/segment_stats.rb
strava-ruby-client-1.1.0 lib/strava/models/segment_stats.rb
strava-ruby-client-1.0.1 lib/strava/models/segment_stats.rb
strava-ruby-client-1.0.0 lib/strava/models/segment_stats.rb