Class: Exlibris::Aleph::TabParser::PcTabExpFieldExtended

Inherits:
Base
  • Object
show all
Defined in:
lib/exlibris/aleph/tabs_parser/pc_tab_exp_field_extended.rb

Instance Attribute Summary

Attributes inherited from Base

#config_array, #config_hash, #file_name, #hash_key, #library, #local_file, #local_path, #pattern, #pattern_key

Instance Method Summary collapse

Methods inherited from Base

#to_a, #to_h

Constructor Details

#initialize(args) ⇒ PcTabExpFieldExtended

Returns a new instance of PcTabExpFieldExtended.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/exlibris/aleph/tabs_parser/pc_tab_exp_field_extended.rb', line 6

def initialize(args)
  args[:aleph_file_name] = "pc_tab_exp_field_extended.eng"
  args[:pattern] = /^(BOR-STATUS\s{10})\s(.{5})\s(L)\s(.{50})\s([^\n]*)/
  args[:pattern_key] = {
    2  => :sublibrary, 
    4  => :text,
    5  => :code
  }
  args[:hash_key] = :code
  super(args)
end