Class: OdflFreight

Inherits:
Object
  • Object
show all
Defined in:
lib/odfl_freight.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actualClassObject

Returns the value of attribute actualClass.



2
3
4
# File 'lib/odfl_freight.rb', line 2

def actualClass
  @actualClass
end

#dimensionUnitsObject

Returns the value of attribute dimensionUnits.



2
3
4
# File 'lib/odfl_freight.rb', line 2

def dimensionUnits
  @dimensionUnits
end

#heightObject

Returns the value of attribute height.



2
3
4
# File 'lib/odfl_freight.rb', line 2

def height
  @height
end

#lengthObject

Returns the value of attribute length.



2
3
4
# File 'lib/odfl_freight.rb', line 2

def length
  @length
end

#nmfcObject

Returns the value of attribute nmfc.



2
3
4
# File 'lib/odfl_freight.rb', line 2

def nmfc
  @nmfc
end

#nmfcsubObject

Returns the value of attribute nmfcsub.



2
3
4
# File 'lib/odfl_freight.rb', line 2

def nmfcsub
  @nmfcsub
end

#numberOfUnitsObject

Returns the value of attribute numberOfUnits.



2
3
4
# File 'lib/odfl_freight.rb', line 2

def numberOfUnits
  @numberOfUnits
end

#ratedClassObject

Returns the value of attribute ratedClass.



2
3
4
# File 'lib/odfl_freight.rb', line 2

def ratedClass
  @ratedClass
end

#weightObject

Returns the value of attribute weight.



2
3
4
# File 'lib/odfl_freight.rb', line 2

def weight
  @weight
end

#widthObject

Returns the value of attribute width.



2
3
4
# File 'lib/odfl_freight.rb', line 2

def width
  @width
end

Instance Method Details

#to_hashObject



4
5
6
7
8
# File 'lib/odfl_freight.rb', line 4

def to_hash
  hash = {}
  instance_variables.each {|var| hash[var.to_s.delete("@")] = instance_variable_get(var) }
  hash
end