Class: Gumroad::LinkProxy
- Inherits:
-
Object
- Object
- Gumroad::LinkProxy
- Defined in:
- lib/gumroad/link_proxy.rb
Instance Method Summary collapse
- #all ⇒ Object
- #create(params = {}) ⇒ Object
- #find(id) ⇒ Object
-
#initialize(session) ⇒ LinkProxy
constructor
A new instance of LinkProxy.
Constructor Details
#initialize(session) ⇒ LinkProxy
Returns a new instance of LinkProxy.
3 4 5 |
# File 'lib/gumroad/link_proxy.rb', line 3 def initialize(session) @session = session end |
Instance Method Details
#all ⇒ Object
11 12 13 14 15 |
# File 'lib/gumroad/link_proxy.rb', line 11 def all @session.get('/links')['links'].map do |json| Gumroad::Link.new(@session, json) end end |