Class: GitDS::Model

Inherits:
Object
  • Object
show all
Includes:
ModelObject
Defined in:
lib/git-ds/model.rb

Overview

A data model.

Instance Attribute Summary

Attributes included from ModelObject

#db, #name, #root

Instance Method Summary collapse

Methods included from ModelObject

#add_fs_item, #add_item, #batch, #branched_transaction, #config, #delete_item, #exec, #get_item, #include?, #initialize_model, #list_children, #transaction

Constructor Details

#initialize(db, name = 'generic', root = nil) ⇒ Model

Returns a new instance of Model.



153
154
155
# File 'lib/git-ds/model.rb', line 153

def initialize(db, name='generic', root=nil)
  initialize_model(db, name, root)
end