Class: Strava::V2::Athlete

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_termsObject (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

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end