Class: Gribr::Degrib::Inventory

Inherits:
Inventory show all
Defined in:
lib/gribr/degrib/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/degrib/inventory.rb', line 11

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

.parse_record(line) ⇒ Object



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

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