Class: Traktr::User::Network

Inherits:
Endpoint show all
Defined in:
lib/traktr/user/network.rb

Instance Method Summary collapse

Methods inherited from Endpoint

#initialize

Constructor Details

This class inherits a constructor from Traktr::Endpoint

Instance Method Details

#followers(username = @client.username) ⇒ Object



4
5
6
# File 'lib/traktr/user/network.rb', line 4

def followers(username = @client.username)
  parse_response self.class.get('/' + File.join('followers.json', @client.api_key, username))
end

#following(username = @client.username) ⇒ Object



8
9
10
# File 'lib/traktr/user/network.rb', line 8

def following(username = @client.username)
  parse_response self.class.get('/' + File.join('following.json', @client.api_key, username))
end

#friends(username = @client.username) ⇒ Object



12
13
14
# File 'lib/traktr/user/network.rb', line 12

def friends(username = @client.username)
  parse_response self.class.get('/' + File.join('friends.json', @client.api_key, username))
end