Class: Zedkit::Blogs

Inherits:
Object
  • Object
show all
Defined in:
lib/zedkit/resources/blogs.rb

Defined Under Namespace

Classes: Posts

Class Method Summary collapse

Class Method Details

.create(zks = {}, &block) ⇒ Object



25
26
27
# File 'lib/zedkit/resources/blogs.rb', line 25

def create(zks = {}, &block)
  Zedkit::Client.crud(:create, "blogs", zks, [], &block)
end

.delete(zks = {}, &block) ⇒ Object



33
34
35
# File 'lib/zedkit/resources/blogs.rb', line 33

def delete(zks = {}, &block)
  Zedkit::Client.crud(:delete, "blogs/#{zks[:uuid]}", zks, [], &block)
end

.get(zks = {}, &block) ⇒ Object



21
22
23
# File 'lib/zedkit/resources/blogs.rb', line 21

def get(zks = {}, &block)
  Zedkit::Client.crud(:get, "blogs/#{zks[:uuid]}", zks, [], &block)
end

.update(zks = {}, &block) ⇒ Object



29
30
31
# File 'lib/zedkit/resources/blogs.rb', line 29

def update(zks = {}, &block)
  Zedkit::Client.crud(:update, "blogs/#{zks[:uuid]}", zks, [], &block)
end