Class: RMARC::Directory
- Inherits:
-
Object
- Object
- RMARC::Directory
- Defined in:
- lib/rmarc/model/directory.rb
Overview
This class represents a directory in a MARC record.
Instance Attribute Summary collapse
-
#length ⇒ Object
Returns the value of attribute length.
-
#start ⇒ Object
Returns the value of attribute start.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(tag, length, start) ⇒ Directory
constructor
A new instance of Directory.
Constructor Details
#initialize(tag, length, start) ⇒ Directory
Returns a new instance of Directory.
30 31 32 33 34 |
# File 'lib/rmarc/model/directory.rb', line 30 def initialize(tag, length, start) @tag = tag @length = length.to_i @start = start.to_i end |
Instance Attribute Details
#length ⇒ Object
Returns the value of attribute length.
28 29 30 |
# File 'lib/rmarc/model/directory.rb', line 28 def length @length end |
#start ⇒ Object
Returns the value of attribute start.
28 29 30 |
# File 'lib/rmarc/model/directory.rb', line 28 def start @start end |
#tag ⇒ Object
Returns the value of attribute tag.
28 29 30 |
# File 'lib/rmarc/model/directory.rb', line 28 def tag @tag end |