Class: GitDS::ModelItem

Inherits:
Object
  • Object
show all
Extended by:
DbModelItemClass
Includes:
DbModelItemObject
Defined in:
lib/git-ds/model/db_item.rb

Overview

Base class for DB-only ModelItem objects. These do not appear in the filesystem.

Instance Attribute Summary

Attributes included from ModelItemObject

#model

Instance Method Summary collapse

Methods included from ModelItemClass

#build_path, #create, #create_in_path, #define_db_property, #define_fs_property, #fill, #fill_properties, #ident, #ident_key, #instance_path, #link_property, #list, #list_in_path, #name, #path, #properties, #property

Methods included from ModelItemObject

#array_property, #bool_property, #delete, #float_property, #ident, #initialize_item, #integer_property, #path, #properties, #property, #property_cache, #set_property, #ts_property, #valid?

Constructor Details

#initialize(model, path) ⇒ ModelItem

Returns a new instance of ModelItem.



41
42
43
# File 'lib/git-ds/model/db_item.rb', line 41

def initialize(model, path)
  initialize_item(model, path)
end