Class: Stash::Wrapper::Inventory
- Inherits:
-
Object
- Object
- Stash::Wrapper::Inventory
- Includes:
- XML::Mapping
- Defined in:
- lib/stash/wrapper/inventory.rb
Overview
Mapping class for <st:inventory>
Instance Method Summary collapse
-
#initialize(files:) ⇒ Inventory
constructor
creates a new Inventory object.
Constructor Details
#initialize(files:) ⇒ Inventory
creates a new Stash::Wrapper::Inventory object
16 17 18 19 |
# File 'lib/stash/wrapper/inventory.rb', line 16 def initialize(files:) self.files = files self.num_files = files.size end |