Class: NumRu::GPhys::Grib::GribES

Inherits:
Object
  • Object
show all
Defined in:
lib/numru/gphys/grib.rb

Overview

end definition of class GribBDS

Instance Method Summary collapse

Constructor Details

#initialize(sgm, str = nil) ⇒ GribES

Returns a new instance of GribES.



1341
1342
1343
1344
# File 'lib/numru/gphys/grib.rb', line 1341

def initialize(sgm,str=nil)
  @sgm = sgm
  @es = str || "7777"
end

Instance Method Details

#getObject



1351
1352
1353
# File 'lib/numru/gphys/grib.rb', line 1351

def get
  @es
end

#grib?Boolean

Returns:

  • (Boolean)


1348
1349
1350
# File 'lib/numru/gphys/grib.rb', line 1348

def grib?
  @es=="7777"
end

#lengthObject



1345
1346
1347
# File 'lib/numru/gphys/grib.rb', line 1345

def length
  return 4
end