class Nimbu::Endpoints::Translations
Public Instance Methods
count(*args)
click to toggle source
# File lib/nimbu-api/endpoints/translations.rb, line 22 def count(*args) arguments(args) get_request("/translations/count", arguments.params) end
create(*args)
click to toggle source
# File lib/nimbu-api/endpoints/translations.rb, line 28 def create(*args) arguments(args) post_request("/translations", arguments.params) end
delete(*args)
click to toggle source
# File lib/nimbu-api/endpoints/translations.rb, line 41 def delete(*args) arguments(args, :required => [:translation_id]) delete_request("/translations/#{translation_id}", arguments.params) end
Also aliased as: remove
get(*args)
click to toggle source
# File lib/nimbu-api/endpoints/translations.rb, line 15 def get(*args) arguments(args, :required => [:translation_id]) get_request("/translations/#{translation_id}", arguments.params) end
Also aliased as: find
list(*args) { |el| ... }
click to toggle source
# File lib/nimbu-api/endpoints/translations.rb, line 6 def list(*args) arguments(args) response = get_request("/translations", arguments.params) return response unless block_given? response.each { |el| yield el } end
Also aliased as: all
update(*args)
click to toggle source
# File lib/nimbu-api/endpoints/translations.rb, line 34 def update(*args) arguments(args, :required => [:translation_id]) patch_request("/translations/#{translation_id}", arguments.params) end
Also aliased as: edit