Module: Appilf::Client::WatchedItems
- Included in:
- Appilf::Client
- Defined in:
- lib/appilf/client/watched_items.rb
Instance Method Summary collapse
- #create_watched_item(item_type, item_id) ⇒ Object
- #delete_watched_item(item_type, item_id) ⇒ Object
- #watched_items_path ⇒ Object
Instance Method Details
#create_watched_item(item_type, item_id) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/appilf/client/watched_items.rb', line 7 def create_watched_item(item_type, item_id) response = authenticated_api_post(watched_items_path, { item_type: item_type, item_id: item_id }) Appilf::Util.translate_from_response(response) end |
#delete_watched_item(item_type, item_id) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/appilf/client/watched_items.rb', line 15 def delete_watched_item(item_type, item_id) authenticated_api_delete(watched_items_path, { item_type: item_type, item_id: item_id }) end |
#watched_items_path ⇒ Object
22 23 24 |
# File 'lib/appilf/client/watched_items.rb', line 22 def watched_items_path "#{authenticated_user_path}/watched-items" end |