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

Commit 49428b1

Browse files
committed
Add find_by_ids query to creations
1 parent abad985 commit 49428b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/creatubbles/creations.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ def create(name: nil, description: nil)
1414
res = @connection.post('creations', :params => { 'name' => name, 'reflection_text' => description })
1515
Creatubbles.instantiate_object_from_response(res, @connection)
1616
end
17+
18+
def find_by_ids(ids)
19+
res = @connection.get("creations?filter[ids]=#{ids.join(',')}")
20+
Creatubbles.instantiate_objects_from_response(res, @connection)
21+
end
1722
end

0 commit comments

Comments
 (0)