Class: LCCallNumber::FirstCutterSet

Inherits:
Object
  • Object
show all
Defined in:
lib/lc_callnumber/lcc.rb

Overview

Some call numbers have a year, infantry division, etc. preceeding and/or following the first cutter. We take all three as a unit so we can deal with edge cases more easily.

“doon” in this case is “Date Or Other Number”

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(d1, cutter, d2) ⇒ FirstCutterSet

Returns a new instance of FirstCutterSet.



128
129
130
131
132
# File 'lib/lc_callnumber/lcc.rb', line 128

def initialize(d1, cutter, d2)
  @doon1 = d1
  @doon2 = d2
  @cutter = cutter
end

Instance Attribute Details

#cutterObject

Returns the value of attribute cutter.



127
128
129
# File 'lib/lc_callnumber/lcc.rb', line 127

def cutter
  @cutter
end

#doon1Object

Returns the value of attribute doon1.



127
128
129
# File 'lib/lc_callnumber/lcc.rb', line 127

def doon1
  @doon1
end

#doon2Object

Returns the value of attribute doon2.



127
128
129
# File 'lib/lc_callnumber/lcc.rb', line 127

def doon2
  @doon2
end