Module: SimplyCouch::Model::Persistence::Properties

Defined in:
lib/simply_couch/model/persistence.rb

Overview

── Properties ─────────────────────────────────────────────────────

Defined Under Namespace

Modules: ClassMethods Classes: PropertyList

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



102
103
104
105
106
107
108
109
110
111
# File 'lib/simply_couch/model/persistence.rb', line 102

def self.included(base)
  base.extend ClassMethods
  base.class_eval do
    def self.properties
      @properties ||= {}
      @properties[name] ||= PropertyList.new(self)
      @properties[name]
    end
  end
end

Instance Method Details

#type_casterObject



113
# File 'lib/simply_couch/model/persistence.rb', line 113

def type_caster; @type_caster ||= TypeCaster.new; end