Sha256: ea9aeecc6c1eb517f0deaba0775981ce0c310ee904948781735710a5b3367349

Contents?: true

Size: 338 Bytes

Versions: 8

Compression:

Stored size: 338 Bytes

Contents

module Strava
  module Models
    class Token < Model
      property 'token_type'
      property 'access_token'
      property 'refresh_token'
      property 'expires_in'
      property 'expires_at', transform_with: ->(v) { Time.at(v) }
      property 'athlete', transform_with: ->(v) { Strava::Models::Athlete.new(v) }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
strava-ruby-client-0.4.2 lib/strava/models/token.rb
strava-ruby-client-0.4.1 lib/strava/models/token.rb
strava-ruby-client-0.4.0 lib/strava/models/token.rb
strava-ruby-client-0.3.2 lib/strava/models/token.rb
strava-ruby-client-0.3.1 lib/strava/models/token.rb
strava-ruby-client-0.3.0 lib/strava/models/token.rb
strava-ruby-client-0.2.0 lib/strava/models/token.rb
strava-ruby-client-0.1.0 lib/strava/models/token.rb