Class: Zedlocales::Translations
- Inherits:
-
Object
- Object
- Zedlocales::Translations
- Defined in:
- lib/zedlocales/translations.rb
Class Method Summary collapse
- .create(*args) {|reshh| ... } ⇒ Object
- .delete(*args) {|reshh| ... } ⇒ Object
- .get(*args) {|reshh| ... } ⇒ Object
- .update(*args) {|reshh| ... } ⇒ Object
Class Method Details
.create(*args) {|reshh| ... } ⇒ Object
29 30 31 32 33 34 |
# File 'lib/zedlocales/translations.rb', line 29 def create(*args) zopts = args. reshh = Zedkit::Client.create('content/translations', zopts[:user_key], zopts.zdelete_keys!(%w(user_key))) yield(reshh) if (not reshh.nil?) && block_given? reshh end |
.delete(*args) {|reshh| ... } ⇒ Object
44 45 46 47 48 49 |
# File 'lib/zedlocales/translations.rb', line 44 def delete(*args) zopts = args. reshh = Zedkit::Client.delete("content/translations/#{zopts[:uuid]}", zopts[:user_key]) yield(reshh) if (not reshh.nil?) && block_given? reshh end |
.get(*args) {|reshh| ... } ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/zedlocales/translations.rb', line 21 def get(*args) zopts = args. reshh = Zedkit::Client.get("content/translations/#{zopts[:uuid]}", zopts[:user_key], zopts.zdelete_keys!(%w(uuid user_key))) yield(reshh) if (not reshh.nil?) && block_given? reshh end |
.update(*args) {|reshh| ... } ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/zedlocales/translations.rb', line 36 def update(*args) zopts = args. reshh = Zedkit::Client.update("content/translations/#{zopts[:uuid]}", zopts[:user_key], zopts.zdelete_keys!(%w(uuid user_key))) yield(reshh) if (not reshh.nil?) && block_given? reshh end |