Module: ADN::API::User

Defined in:
lib/adn/api/user.rb

Class Method Summary collapse

Class Method Details

.followers(user_id) ⇒ Object



14
15
16
# File 'lib/adn/api/user.rb', line 14

def self.followers(user_id)
  ADN::API.get("#{ADN::API_ENDPOINT_USERS}/#{user_id}/followers")
end

.following(user_id) ⇒ Object



10
11
12
# File 'lib/adn/api/user.rb', line 10

def self.following(user_id)
  ADN::API.get("#{ADN::API_ENDPOINT_USERS}/#{user_id}/following")
end

.retrieve(user_id) ⇒ Object



6
7
8
# File 'lib/adn/api/user.rb', line 6

def self.retrieve(user_id)
  ADN::API.get("#{ADN::API_ENDPOINT_USERS}/#{user_id}")
end