diff --git a/lib/outliner/helper.rb b/lib/outliner/helper.rb deleted file mode 100644 index f93c392..0000000 --- a/lib/outliner/helper.rb +++ /dev/null @@ -1,13 +0,0 @@ -module Outliner - class Helper - def find_or_create_collection(client, name) - collections = client.collections_list(limit: 100)['data'] - collections.filter!{|c|c['name'] == name} - if collections.size >= 1 - collections[0]['id'] - else - client.collections_create(name: name, description: 'Imported Collection')['data']['id'] - end - end - end -end