Class: ContextIO::FolderCollection

Inherits:
Object
  • Object
show all
Includes:
API::ResourceCollection
Defined in:
lib/contextio/folder_collection.rb

Instance Attribute Summary

Attributes included from API::ResourceCollection

#resource_url, #where_constraints

Instance Method Summary collapse

Methods included from API::ResourceCollection

#[], #each, #empty?, #size, #where

Instance Method Details

#create(folder_name, folder_delimiter = '/') ⇒ Object



13
14
15
# File 'lib/contextio/folder_collection.rb', line 13

def create(folder_name, folder_delimiter='/')
  api.request(:put, "#{resource_url}/#{folder_name}", delim: folder_delimiter)['success']
end