Module: SuperModel::Marshal::Model

Defined in:
lib/supermodel/marshal.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



43
44
45
# File 'lib/supermodel/marshal.rb', line 43

def self.included(base)
  Marshal.klasses << base
end

Instance Method Details

#marshal_dumpObject



47
48
49
# File 'lib/supermodel/marshal.rb', line 47

def marshal_dump
  @attributes
end

#marshal_load(attributes) ⇒ Object



51
52
53
# File 'lib/supermodel/marshal.rb', line 51

def marshal_load(attributes)
  @attributes = attributes
end