Sha256: 5b4b57d06b16954d529935c50f6f6880c55e8cc598f54ff803b16609a4cc2588

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

require 'strava/strava_response'

module Strava
  module V1
    class Segment
      attr_reader :id, :name, :efforts

      # ejb - efforts json, in list form
      def initialize(jb, ejb)
        @id = jb["id"]
        @name = jb["name"]
        @efforts = []
        ejb.each { |effort_json|
          @efforts.push(Effort.new(effort_json))
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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