Class: Sequel::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/delayed/serialization/sequel.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.yaml_new(klass, tag, val) ⇒ Object

Raises:

  • (DeserializationError)


4
5
6
7
8
# File 'lib/delayed/serialization/sequel.rb', line 4

def self.yaml_new(klass, tag, val)
  obj = klass[val['values'][:id]]
  raise DeserializationError if obj.nil?
  obj
end

Instance Method Details

#to_yaml_propertiesObject



10
11
12
# File 'lib/delayed/serialization/sequel.rb', line 10

def to_yaml_properties
  ['@values']
end