Class: Chute::V2::Tags
- Inherits:
-
Object
- Object
- Chute::V2::Tags
- Defined in:
- lib/chute/v2/tags.rb
Class Method Summary collapse
-
.add_asset_tags(album_id, asset_id, *tags) ⇒ Object
Add new tags to existing assets, without replacing the current ones.
-
.all_asset_tags(album_id, asset_id) ⇒ Object
Asset Tags.
-
.delete_asset_tags(album_id, asset_id, *tags) ⇒ Object
Delete all tags from an asset.
-
.update_asset_tags(album_id, asset_id, *tags) ⇒ Object
Change the complete list of tags for an asset inside an album.
Class Method Details
.add_asset_tags(album_id, asset_id, *tags) ⇒ Object
Add new tags to existing assets, without replacing the current ones
17 18 19 |
# File 'lib/chute/v2/tags.rb', line 17 def (album_id, asset_id, *) Chute::Client.post("/v2/albums/#{album_id}/assets/#{asset_id}/tags", tags: process_array()) end |
.all_asset_tags(album_id, asset_id) ⇒ Object
Asset Tags
7 8 9 |
# File 'lib/chute/v2/tags.rb', line 7 def (album_id, asset_id) Chute::Client.get("/v2/albums/#{album_id}/assets/#{asset_id}/tags") end |