Class: AngelList::Follow
- Inherits:
-
Base
- Object
- Base
- AngelList::Follow
show all
- Defined in:
- lib/angel_list/follow.rb
Instance Attribute Summary
Attributes inherited from Base
#auth
Instance Method Summary
collapse
Methods inherited from Base
#delete, #get, #initialize, #parse, #post
Instance Method Details
#batch(array) ⇒ Object
11
12
13
|
# File 'lib/angel_list/follow.rb', line 11
def batch(array)
get('https://api.angel.co/1/follows/batch?ids='+array.join(','))
end
|
#destroy(options) ⇒ Object
7
8
9
|
# File 'lib/angel_list/follow.rb', line 7
def destroy(options)
delete('https://api.angel.co/1/follows', options)
end
|
#followers(id) ⇒ Object
15
16
17
|
# File 'lib/angel_list/follow.rb', line 15
def followers(id)
get('https://api.angel.co/1/users/'+id.to_s+'/followers')
end
|
#followers_ids(id) ⇒ Object
19
20
21
|
# File 'lib/angel_list/follow.rb', line 19
def followers_ids(id)
get('https://api.angel.co/1/users/'+id.to_s+'/followers/ids')
end
|
#following(id, options = {}) ⇒ Object
23
24
25
|
# File 'lib/angel_list/follow.rb', line 23
def following(id, options={})
get('https://api.angel.co/1/users/'+id.to_s+'/following', options)
end
|
#following_ids(id, options = {}) ⇒ Object
27
28
29
|
# File 'lib/angel_list/follow.rb', line 27
def following_ids(id, options={})
get('https://api.angel.co/1/users/'+id.to_s+'/following/ids', options)
end
|
#new(options) ⇒ Object
3
4
5
|
# File 'lib/angel_list/follow.rb', line 3
def new(options)
post('https://api.angel.co/1/follows', options)
end
|
#startup(id) ⇒ Object
31
32
33
|
# File 'lib/angel_list/follow.rb', line 31
def startup(id)
get('https://api.angel.co/1/startups/'+id.to_s+'/followers')
end
|
#startup_follower_ids(id) ⇒ Object
35
36
37
|
# File 'lib/angel_list/follow.rb', line 35
def startup_follower_ids(id)
get('https://api.angel.co/1/startups/'+id.to_s+'/followers/ids')
end
|