Class: Zedlocales::Translations
- Inherits:
-
Object
- Object
- Zedlocales::Translations
- Defined in:
- lib/zedlocales/translations.rb
Class Method Summary collapse
- .create(zks = {}, &block) ⇒ Object
- .delete(zks = {}, &block) ⇒ Object
- .get(zks = {}, &block) ⇒ Object
- .update(zks = {}, &block) ⇒ Object
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 |