Class: Referly::LinkProxy
- Inherits:
-
Object
- Object
- Referly::LinkProxy
- Defined in:
- lib/referly/link_proxy.rb
Instance Method Summary collapse
- #all(params = {}) ⇒ Object
- #create(params = {}) ⇒ Object
-
#initialize(client) ⇒ LinkProxy
constructor
A new instance of LinkProxy.
Constructor Details
#initialize(client) ⇒ LinkProxy
Returns a new instance of LinkProxy.
3 4 5 |
# File 'lib/referly/link_proxy.rb', line 3 def initialize(client) @client = client end |
Instance Method Details
#all(params = {}) ⇒ Object
7 8 9 |
# File 'lib/referly/link_proxy.rb', line 7 def all(params={}) @client.get('/links', params)['links'] end |
#create(params = {}) ⇒ Object
11 12 13 |
# File 'lib/referly/link_proxy.rb', line 11 def create(params={}) @client.post('/links', params).parsed_response end |