Class: Metacrunch::Marcxml::Document::Controlfield
- Inherits:
-
Object
- Object
- Metacrunch::Marcxml::Document::Controlfield
- Defined in:
- lib/metacrunch/marcxml/document/controlfield.rb
Instance Attribute Summary collapse
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(tag = nil, value = nil) ⇒ Controlfield
constructor
A new instance of Controlfield.
Constructor Details
#initialize(tag = nil, value = nil) ⇒ Controlfield
Returns a new instance of Controlfield.
9 10 11 12 |
# File 'lib/metacrunch/marcxml/document/controlfield.rb', line 9 def initialize(tag = nil, value = nil) @tag = tag @value = value end |
Instance Attribute Details
#tag ⇒ Object
Returns the value of attribute tag.
6 7 8 |
# File 'lib/metacrunch/marcxml/document/controlfield.rb', line 6 def tag @tag end |
#value ⇒ Object
Returns the value of attribute value.
7 8 9 |
# File 'lib/metacrunch/marcxml/document/controlfield.rb', line 7 def value @value end |