Class: Noid::Rails::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/noid/rails/service.rb

Overview

A service that validates and mints identifiers

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(minter = default_minter) ⇒ Service

Returns a new instance of Service.



11
12
13
# File 'lib/noid/rails/service.rb', line 11

def initialize(minter = default_minter)
  @minter = minter
end

Instance Attribute Details

#minterObject (readonly)

Returns the value of attribute minter.



9
10
11
# File 'lib/noid/rails/service.rb', line 9

def minter
  @minter
end