Class: Recomiendo::Link
- Inherits:
-
Object
- Object
- Recomiendo::Link
- Defined in:
- lib/recomiendo/link.rb
Instance Method Summary collapse
- #all(params = {}) ⇒ Object
- #create(params = {}) ⇒ Object
-
#initialize(client) ⇒ Link
constructor
A new instance of Link.
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 |