Class: AngelList::User

Inherits:
Base
  • Object
show all
Defined in:
lib/angel_list/user.rb

Instance Attribute Summary

Attributes inherited from Base

#auth

Instance Method Summary collapse

Methods inherited from Base

#delete, #get, #initialize, #parse, #post

Constructor Details

This class inherits a constructor from AngelList::Base

Instance Method Details

#batch(array = []) ⇒ Object



11
12
13
# File 'lib/angel_list/user.rb', line 11

def batch(array=[])
  get('https://api.angel.co/1/users/batch?ids='+array.join(','))
end

#find(id) ⇒ Object



7
8
9
# File 'lib/angel_list/user.rb', line 7

def find(id)
  get('https://api.angel.co/1/users/'+id.to_s)
end

#meObject



3
4
5
# File 'lib/angel_list/user.rb', line 3

def me
  get('https://api.angel.co/1/me')
end

#search(string) ⇒ Object



15
16
17
# File 'lib/angel_list/user.rb', line 15

def search(string)
  get('https://api.angel.co/1/users/search?slug='+URI.escape(string))
end