Class: RMARC::Directory

Inherits:
Object
  • Object
show all
Defined in:
lib/rmarc/model/directory.rb

Overview

This class represents a directory in a MARC record.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lengthObject

Returns the value of attribute length.



28
29
30
# File 'lib/rmarc/model/directory.rb', line 28

def length
  @length
end

#startObject

Returns the value of attribute start.



28
29
30
# File 'lib/rmarc/model/directory.rb', line 28

def start
  @start
end

#tagObject

Returns the value of attribute tag.



28
29
30
# File 'lib/rmarc/model/directory.rb', line 28

def tag
  @tag
end