Class: Gribr::Wgrib::Inventory

Inherits:
Inventory show all
Defined in:
lib/gribr/wgrib/inventory.rb

Class Method Summary collapse

Methods inherited from Inventory

#add_record, file, #initialize, io, #records, #to_s, url

Constructor Details

This class inherits a constructor from Gribr::Inventory

Class Method Details

.command(file) ⇒ Object



11
12
13
# File 'lib/gribr/wgrib/inventory.rb', line 11

def command(file)
  "wgrib #{file.respond_to?(:path) ? file.path : file} -s"
end

.parse_record(line) ⇒ Object



15
16
17
# File 'lib/gribr/wgrib/inventory.rb', line 15

def parse_record(line)
  ShortInventoryRecord.parse!(line)
end