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.



1336
1337
1338
1339
# File 'lib/numru/gphys/grib.rb', line 1336

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

Instance Method Details

#getObject



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

def get
  @es
end

#grib?Boolean

Returns:

  • (Boolean)


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

def grib?
  @es=="7777"
end

#lengthObject



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

def length
  return 4
end