Class: Ribose::Wiki
- Includes:
- Actions::All, Actions::Create, Actions::Delete, Actions::Fetch, Actions::Update
- Defined in:
- lib/ribose/wiki.rb
Class Method Summary collapse
-
.all(space_id, options = {}) ⇒ Object
List wiki pages.
-
.create(space_id, attributes) ⇒ Sawyer::Resoruce
Create a wiki page.
-
.delete(space_id, wiki_id, options = {}) ⇒ Object
Delete a wiki page.
-
.fetch(space_id, wiki_id, options = {}) ⇒ Sawyer::Resoruce
Fetch a wiki page.
-
.update(space_id, wiki_id, attributes) ⇒ Sawyer::Resoruce
Update a wiki page.
Methods included from Actions::Delete
Methods included from Actions::Base
Methods included from Actions::Update
Methods included from Actions::Create
Methods included from Actions::Fetch
Methods included from Actions::All
Methods inherited from Base
Methods included from ResourceHelper
#resource_id, #resource_key, #resource_path, #resources
Constructor Details
This class inherits a constructor from Ribose::Base
Class Method Details
.all(space_id, options = {}) ⇒ Object
List wiki pages
15 16 17 |
# File 'lib/ribose/wiki.rb', line 15 def self.all(space_id, = {}) new(space_id: space_id, **).all end |
.create(space_id, attributes) ⇒ Sawyer::Resoruce
Create a wiki page
35 36 37 |
# File 'lib/ribose/wiki.rb', line 35 def self.create(space_id, attributes) new(space_id: space_id, **attributes).create end |
.delete(space_id, wiki_id, options = {}) ⇒ Object
Delete a wiki page
56 57 58 |
# File 'lib/ribose/wiki.rb', line 56 def self.delete(space_id, wiki_id, = {}) new(space_id: space_id, resource_id: wiki_id, **).delete end |
.fetch(space_id, wiki_id, options = {}) ⇒ Sawyer::Resoruce
Fetch a wiki page
25 26 27 |
# File 'lib/ribose/wiki.rb', line 25 def self.fetch(space_id, wiki_id, = {}) new(space_id: space_id, resource_id: wiki_id, **).fetch end |
.update(space_id, wiki_id, attributes) ⇒ Sawyer::Resoruce
Update a wiki page
47 48 49 |
# File 'lib/ribose/wiki.rb', line 47 def self.update(space_id, wiki_id, attributes) new(space_id: space_id, resource_id: wiki_id, **attributes).update end |