Class: Strava::V1::Athlete

Inherits:
StravaResponse show all
Defined in:
lib/strava/v1/models/athlete.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(jb = {}) ⇒ Athlete

Returns a new instance of Athlete.



8
9
10
11
12
# File 'lib/strava/v1/models/athlete.rb', line 8

def initialize(jb = {})
  @id = jb["id"]
  @username = jb["username"]
  @name = jb["name"]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/strava/v1/models/athlete.rb', line 6

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/strava/v1/models/athlete.rb', line 6

def name
  @name
end

#usernameObject (readonly)

Returns the value of attribute username.



6
7
8
# File 'lib/strava/v1/models/athlete.rb', line 6

def username
  @username
end