Sha256: 26e0f9bd50724882803599df762da7e82b03bfd6daff0e36ee1f39de92535da9

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

require 'strava/strava_response'
require 'strava/v2/models/athlete'

module Strava
  module V2
    class Auth < StravaResponse
      attr_reader :token, :athlete

      def initialize(json_blob)
        @token = json_blob["token"]
        @athlete = Athlete.new(json_blob["athlete"])
      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/auth.rb