Class: Strava::V1::Club

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end