Class: BabyTooth::User
Instance Attribute Summary
Attributes inherited from Client
#access_token, #path
Instance Method Summary
collapse
Methods inherited from Client
#[], #body, exposes_keys, #resource_class_name
Constructor Details
#initialize(access_token) ⇒ User
Returns a new instance of User.
5
6
7
|
# File 'lib/baby_tooth/user.rb', line 5
def initialize(access_token)
super access_token, '/user'
end
|
Instance Method Details
#fitness_activity_feed ⇒ Object
9
10
11
|
# File 'lib/baby_tooth/user.rb', line 9
def fitness_activity_feed
@fitness_activity_feed ||= FitnessActivityFeed.new(access_token, fitness_activities)
end
|
#profile ⇒ Object
17
18
19
|
# File 'lib/baby_tooth/user.rb', line 17
def profile
@profile ||= Profile.new(access_token, self['profile'])
end
|
#street_team ⇒ Object
13
14
15
|
# File 'lib/baby_tooth/user.rb', line 13
def street_team
@street_team ||= TeamFeed.new(access_token, self['team']).members
end
|