Class: Noid::Rails::Minter::Db

Inherits:
Base
  • Object
show all
Defined in:
lib/noid/rails/minter/db.rb

Overview

A minter backed by a database table. You would select this if you need to mint identifers on several distributed front-ends that do not share a common file system.

Instance Method Summary collapse

Methods inherited from Base

#initialize, #mint

Constructor Details

This class inherits a constructor from Noid::Rails::Minter::Base

Instance Method Details

#readObject


12
13
14
# File 'lib/noid/rails/minter/db.rb', line 12

def read
  deserialize(instance)
end

#write!(minter) ⇒ Object


16
17
18
# File 'lib/noid/rails/minter/db.rb', line 16

def write!(minter)
  serialize(instance, minter)
end