Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit 63e4d9f

Browse files
committed
Add update_tags function
1 parent e3bba19 commit 63e4d9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/creatubbles/creation.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ class Creatubbles::Creation < Creatubbles::BaseObject
2424
obj_file_url
2525
play_iframe_url
2626
created_at
27+
tags
2728
updated_at
2829
]
2930

31+
def update_tags(tags)
32+
@connection.put("creations/#{id}", :params => { 'tags' => tags })
33+
end
34+
3035
def upload(file)
3136
extension = File.extname(file)[1..-1]
3237
res = @connection.post("creations/#{id}/uploads", :params => { 'extension' => extension })

0 commit comments

Comments
 (0)