Sha256: 6c32e7beb8aa549e2b1bf00051756991416e0d5e8a697f689f045bf8425cd2a9

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

require 'strava/strava_response'
require 'strava/v2/models/segment'

module Strava
  module V2
    class Effort < StravaResponse
      attr_reader :id, :elapsed_time, :moving_time, :distance

      # Initialize the Effort
      # ejs - the effort JSON
      def initialize(ejs)
        @id = ejs["id"]
        @elapsed_time = ejs["elapsed_time"]
        @moving_time = ejs["moving_time"]
        @distance = ejs["distance"]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
strava-api-v2-0.1 lib/strava/v2/models/effort.rb