Class: Marcxella::Collection
- Inherits:
-
Object
- Object
- Marcxella::Collection
- Defined in:
- lib/marcxella/collection.rb
Overview
Wrapper for a collection element, which contains 0 or more record
elements
Instance Method Summary collapse
-
#initialize(node) ⇒ Collection
constructor
A new instance of Collection.
-
#records ⇒ Array<Record>
The records in the container.
Constructor Details
#initialize(node) ⇒ Collection
Returns a new instance of Collection.
6 7 8 |
# File 'lib/marcxella/collection.rb', line 6 def initialize(node) @node = node end |