Module: Feedlr::Gateway::Categories

Included in:
Client
Defined in:
lib/feedlr/gateway/categories.rb

Overview

Categories API

Instance Method Summary collapse

Instance Method Details

#change_category_label(category_id, new_value) ⇒ Feedlr::Success

Change the label of an existing user category

Parameters:

  • category_id (String)
  • new_value (String)

    label's new value

Returns:

See Also:



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

Parameters:

  • category_id (String)

Returns:

See Also:



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_categoriesFeedlr::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