Class: CouchRest::Model::Base
- Inherits:
-
Object
- Object
- CouchRest::Model::Base
show all
- Defined in:
- lib/delayed/serialization/couchrest_model.rb
Overview
extent couchrest to handle delayed_job serialization.
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.yaml_new(klass, tag, val) ⇒ Object
7
8
9
|
# File 'lib/delayed/serialization/couchrest_model.rb', line 7
def self.yaml_new(klass, tag, val)
klass.get(val['_attributes']['_id'])
end
|
Instance Method Details
#==(other) ⇒ Object
13
14
15
16
17
18
19
|
# File 'lib/delayed/serialization/couchrest_model.rb', line 13
def ==(other)
if other.is_a? ::CouchRest::Model::Base
self['_id'] == other['_id']
else
super
end
end
|
#to_yaml_properties ⇒ Object
10
11
12
|
# File 'lib/delayed/serialization/couchrest_model.rb', line 10
def to_yaml_properties
['@_attributes']
end
|