Class: Strava::V1::Athlete
- Inherits:
-
StravaResponse
- Object
- StravaResponse
- Strava::V1::Athlete
- Defined in:
- lib/strava/v1/models/athlete.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(jb = {}) ⇒ Athlete
constructor
A new instance of Athlete.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/strava/v1/models/athlete.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/strava/v1/models/athlete.rb', line 6 def name @name end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
6 7 8 |
# File 'lib/strava/v1/models/athlete.rb', line 6 def username @username end |