Class: Corpshort::Backends::Base
- Inherits:
-
Object
- Object
- Corpshort::Backends::Base
- Defined in:
- lib/corpshort/backends/base.rb
Defined Under Namespace
Classes: ConflictError
Instance Method Summary collapse
- #delete_link(link_or_name) ⇒ Object
- #get_link(name) ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #list_links(token: nil, limit: 30) ⇒ Object
- #list_links_by_url(url) ⇒ Object
- #put_link(link, create_only: false) ⇒ Object
- #rename_link(link, new_name) ⇒ Object
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
6 7 |
# File 'lib/corpshort/backends/base.rb', line 6 def initialize() end |
Instance Method Details
#delete_link(link_or_name) ⇒ Object
17 18 19 |
# File 'lib/corpshort/backends/base.rb', line 17 def delete_link(link_or_name) raise NotImplementedError end |
#get_link(name) ⇒ Object
13 14 15 |
# File 'lib/corpshort/backends/base.rb', line 13 def get_link(name) raise NotImplementedError end |
#list_links(token: nil, limit: 30) ⇒ Object
29 30 31 |
# File 'lib/corpshort/backends/base.rb', line 29 def list_links(token: nil, limit: 30) raise NotImplementedError end |
#list_links_by_url(url) ⇒ Object
25 26 27 |
# File 'lib/corpshort/backends/base.rb', line 25 def list_links_by_url(url) raise NotImplementedError end |
#put_link(link, create_only: false) ⇒ Object
9 10 11 |
# File 'lib/corpshort/backends/base.rb', line 9 def put_link(link, create_only: false) raise NotImplementedError end |
#rename_link(link, new_name) ⇒ Object
21 22 23 |
# File 'lib/corpshort/backends/base.rb', line 21 def rename_link(link, new_name) raise NotImplementedError end |