class Jamef::Item
Attributes
height[RW]
length[RW]
price[RW]
quantity[RW]
weight[RW]
width[RW]
Public Class Methods
new(width=nil, height=nil, length=nil, quantity=nil, weight=nil, price=nil)
click to toggle source
# File lib/jamef/item.rb, line 9 def initialize(width=nil, height=nil, length=nil, quantity=nil, weight=nil, price=nil) @width = width @height = height @length = length @quantity = quantity @weight = weight @price = price end
Public Instance Methods
cubage()
click to toggle source
# File lib/jamef/item.rb, line 18 def cubage Elegible.new('*', self.width, self.height, self.length, self.quantity).total end