Module: Feedlr::Gateway::Categories
- Included in:
- Client
- Defined in:
- lib/feedlr/gateway/categories.rb
Overview
Categories API
Instance Method Summary collapse
-
#change_category_label(category_id, new_value) ⇒ Feedlr::Success
Change the label of an existing user category.
-
#delete_category(category_id) ⇒ Feedlr::Success
Delete a user category.
-
#user_categories ⇒ Feedlr::Collection
Get the list of all user categories.
Instance Method Details
#change_category_label(category_id, new_value) ⇒ Feedlr::Success
Change the label of an existing user category
21 22 23 24 |
# File 'lib/feedlr/gateway/categories.rb', line 21 def change_category_label(category_id , new_value) build_object(:post , "/categories/#{CGI.escape(category_id) }" , label: new_value) end |
#delete_category(category_id) ⇒ Feedlr::Success
Delete a user category
31 32 33 |
# File 'lib/feedlr/gateway/categories.rb', line 31 def delete_category(category_id) build_object(:delete , "/categories/#{CGI.escape(category_id) }") end |
#user_categories ⇒ Feedlr::Collection
Get the list of all user categories
11 12 13 |
# File 'lib/feedlr/gateway/categories.rb', line 11 def user_categories build_object(:get , '/categories') end |