Class: OdflFreight
- Inherits:
-
Object
- Object
- OdflFreight
- Defined in:
- lib/odfl_freight.rb
Instance Attribute Summary collapse
-
#actualClass ⇒ Object
Returns the value of attribute actualClass.
-
#dimensionUnits ⇒ Object
Returns the value of attribute dimensionUnits.
-
#height ⇒ Object
Returns the value of attribute height.
-
#length ⇒ Object
Returns the value of attribute length.
-
#nmfc ⇒ Object
Returns the value of attribute nmfc.
-
#nmfcsub ⇒ Object
Returns the value of attribute nmfcsub.
-
#numberOfUnits ⇒ Object
Returns the value of attribute numberOfUnits.
-
#ratedClass ⇒ Object
Returns the value of attribute ratedClass.
-
#weight ⇒ Object
Returns the value of attribute weight.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
Instance Attribute Details
#actualClass ⇒ Object
Returns the value of attribute actualClass.
2 3 4 |
# File 'lib/odfl_freight.rb', line 2 def actualClass @actualClass end |
#dimensionUnits ⇒ Object
Returns the value of attribute dimensionUnits.
2 3 4 |
# File 'lib/odfl_freight.rb', line 2 def dimensionUnits @dimensionUnits end |
#height ⇒ Object
Returns the value of attribute height.
2 3 4 |
# File 'lib/odfl_freight.rb', line 2 def height @height end |
#length ⇒ Object
Returns the value of attribute length.
2 3 4 |
# File 'lib/odfl_freight.rb', line 2 def length @length end |
#nmfc ⇒ Object
Returns the value of attribute nmfc.
2 3 4 |
# File 'lib/odfl_freight.rb', line 2 def nmfc @nmfc end |
#nmfcsub ⇒ Object
Returns the value of attribute nmfcsub.
2 3 4 |
# File 'lib/odfl_freight.rb', line 2 def nmfcsub @nmfcsub end |
#numberOfUnits ⇒ Object
Returns the value of attribute numberOfUnits.
2 3 4 |
# File 'lib/odfl_freight.rb', line 2 def numberOfUnits @numberOfUnits end |
#ratedClass ⇒ Object
Returns the value of attribute ratedClass.
2 3 4 |
# File 'lib/odfl_freight.rb', line 2 def ratedClass @ratedClass end |
#weight ⇒ Object
Returns the value of attribute weight.
2 3 4 |
# File 'lib/odfl_freight.rb', line 2 def weight @weight end |
#width ⇒ Object
Returns the value of attribute width.
2 3 4 |
# File 'lib/odfl_freight.rb', line 2 def width @width end |
Instance Method Details
#to_hash ⇒ Object
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 |