Class: Strava::V2::Athlete
- Inherits:
-
StravaResponse
- Object
- StravaResponse
- Strava::V2::Athlete
- Defined in:
- lib/strava/v2/models/athlete.rb
Instance Attribute Summary collapse
-
#agreed_to_terms ⇒ Object
readonly
Returns the value of attribute agreed_to_terms.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(json_blob) ⇒ Athlete
constructor
A new instance of Athlete.
Constructor Details
#initialize(json_blob) ⇒ Athlete
Returns a new instance of Athlete.
8 9 10 11 12 |
# File 'lib/strava/v2/models/athlete.rb', line 8 def initialize(json_blob) @id = json_blob["id"] @name = json_blob["name"] @agreed_to_terms = json_blob["agreed_to_terms"] end |
Instance Attribute Details
#agreed_to_terms ⇒ Object (readonly)
Returns the value of attribute agreed_to_terms.
6 7 8 |
# File 'lib/strava/v2/models/athlete.rb', line 6 def agreed_to_terms @agreed_to_terms end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/strava/v2/models/athlete.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/strava/v2/models/athlete.rb', line 6 def name @name end |