Class: Zedlocales::Translations

Inherits:
Object
  • Object
show all
Defined in:
lib/zedlocales/translations.rb

Class Method Summary collapse

Class Method Details

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



25
26
27
# File 'lib/zedlocales/translations.rb', line 25

def create(zks = {}, &block)
  Zedkit::Client.crud(:create, 'content/translations', zks, [], &block)
end

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



33
34
35
# File 'lib/zedlocales/translations.rb', line 33

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

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



21
22
23
# File 'lib/zedlocales/translations.rb', line 21

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

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



29
30
31
# File 'lib/zedlocales/translations.rb', line 29

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