Class: Strava::V2::Auth

Inherits:
StravaResponse show all
Defined in:
lib/strava/v2/models/auth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_blob) ⇒ Auth

Returns a new instance of Auth.



9
10
11
12
# File 'lib/strava/v2/models/auth.rb', line 9

def initialize(json_blob)
  @token = json_blob["token"]
  @athlete = Athlete.new(json_blob["athlete"])
end

Instance Attribute Details

#athleteObject (readonly)

Returns the value of attribute athlete.



7
8
9
# File 'lib/strava/v2/models/auth.rb', line 7

def athlete
  @athlete
end

#tokenObject (readonly)

Returns the value of attribute token.



7
8
9
# File 'lib/strava/v2/models/auth.rb', line 7

def token
  @token
end