Class: PennMARC::InventoryEntry::Base
- Inherits:
-
Object
- Object
- PennMARC::InventoryEntry::Base
- Defined in:
- lib/pennmarc/helpers/inventory_entry/base.rb
Overview
Base class for InventoryEntry classes, defines required interface
Direct Known Subclasses
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#mapper ⇒ Object
readonly
Returns the value of attribute mapper.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(inventory_field, source) ⇒ Base
constructor
A new instance of Base.
- #to_h ⇒ Hash
Constructor Details
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
7 8 9 |
# File 'lib/pennmarc/helpers/inventory_entry/base.rb', line 7 def field @field end |
#mapper ⇒ Object (readonly)
Returns the value of attribute mapper.
7 8 9 |
# File 'lib/pennmarc/helpers/inventory_entry/base.rb', line 7 def mapper @mapper end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
7 8 9 |
# File 'lib/pennmarc/helpers/inventory_entry/base.rb', line 7 def source @source end |
Instance Method Details
#to_h ⇒ Hash
18 19 20 |
# File 'lib/pennmarc/helpers/inventory_entry/base.rb', line 18 def to_h raise NotImplementedError end |