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