Class: Gribr::Wgrib::InventoryRecord

Inherits:
Struct
  • Object
show all
Includes:
RegexpParser
Defined in:
lib/gribr/wgrib/inventory_record.rb

Direct Known Subclasses

ShortInventoryRecord

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RegexpParser

included

Instance Attribute Details

#averageObject

Returns the value of attribute average

Returns:

  • (Object)

    the current value of average



6
7
8
# File 'lib/gribr/wgrib/inventory_record.rb', line 6

def average
  @average
end

#elementObject

Returns the value of attribute element

Returns:

  • (Object)

    the current value of element



6
7
8
# File 'lib/gribr/wgrib/inventory_record.rb', line 6

def element
  @element
end

#end_positionObject

Returns the value of attribute end_position

Returns:

  • (Object)

    the current value of end_position



6
7
8
# File 'lib/gribr/wgrib/inventory_record.rb', line 6

def end_position
  @end_position
end

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



6
7
8
# File 'lib/gribr/wgrib/inventory_record.rb', line 6

def level
  @level
end

#numberObject

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



6
7
8
# File 'lib/gribr/wgrib/inventory_record.rb', line 6

def number
  @number
end

#projectionObject

Returns the value of attribute projection

Returns:

  • (Object)

    the current value of projection



6
7
8
# File 'lib/gribr/wgrib/inventory_record.rb', line 6

def projection
  @projection
end

#reference_timeObject

Returns the value of attribute reference_time

Returns:

  • (Object)

    the current value of reference_time



6
7
8
# File 'lib/gribr/wgrib/inventory_record.rb', line 6

def reference_time
  @reference_time
end

#start_positionObject

Returns the value of attribute start_position

Returns:

  • (Object)

    the current value of start_position



6
7
8
# File 'lib/gribr/wgrib/inventory_record.rb', line 6

def start_position
  @start_position
end

#valid_timeObject

Returns the value of attribute valid_time

Returns:

  • (Object)

    the current value of valid_time



6
7
8
# File 'lib/gribr/wgrib/inventory_record.rb', line 6

def valid_time
  @valid_time
end

Instance Method Details

#end_position_of_previousObject



10
11
12
# File 'lib/gribr/wgrib/inventory_record.rb', line 10

def end_position_of_previous
  start_position - 1 if number > 1
end