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

Commit f050035

Browse files
authored
Merge pull request #4 from creatubbles/creations-find-by-ids
Tested locally
2 parents abad985 + 49428b1 commit f050035

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)