Class: Zedkit::Projects::Models

Inherits:
Object
  • Object
show all
Defined in:
lib/zeddb/resources/projects.rb

Class Method Summary collapse

Class Method Details

.get(zks = {}, &block) ⇒ Object

ZedDB Application Databases

All projects/applications have an assigned database whether they use it or not. We just bypass the concept of a separate database API resource. You ask the project/application directly for the models setup within its database:

Zedkit::Projects.Models.get(:user_key => user['user_key'], :project => { :uuid => project['uuid'] })

Each Zedkit project/application has an unique UUID available within the user’s projects list, which you can then use here, and with all methods that collect objects attached to a project/application.



34
35
36
# File 'lib/zeddb/resources/projects.rb', line 34

def get(zks = {}, &block)
  Zedkit::Client.crud(:get, 'db/models', zks, [], &block)
end