Class: Recomiendo::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/recomiendo/link.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Link

Returns a new instance of Link.



3
4
5
# File 'lib/recomiendo/link.rb', line 3

def initialize(client)
  @client = client
end

Instance Method Details

#all(params = {}) ⇒ Object



7
8
9
# File 'lib/recomiendo/link.rb', line 7

def all(params={})
  @client.get('/links', params)['links']
end

#create(params = {}) ⇒ Object



11
12
13
# File 'lib/recomiendo/link.rb', line 11

def create(params={})
  @client.post('/links', params).parsed_response
end