Sha256: fdcba0e35f385b6d739ce12885974a9f7cebfe2d6bf122dc62e944b6f213c549

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

require 'strava/strava_response'

module Strava
  module V2
    class Athlete < StravaResponse
      attr_reader :id, :name, :agreed_to_terms

      def initialize(json_blob)
        @id = json_blob["id"]
        @name = json_blob["name"]
        @agreed_to_terms = json_blob["agreed_to_terms"]
      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/athlete.rb