Class: Binpack::UnrotatableItem

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

Direct Known Subclasses

Item

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj, width, height) ⇒ UnrotatableItem

Returns a new instance of UnrotatableItem.



7
8
9
# File 'lib/binpack.rb', line 7

def initialize(obj, width, height)
  @obj, @width, @height = obj, width, height
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



5
6
7
# File 'lib/binpack.rb', line 5

def height
  @height
end

#objObject (readonly)

Returns the value of attribute obj.



5
6
7
# File 'lib/binpack.rb', line 5

def obj
  @obj
end

#widthObject (readonly)

Returns the value of attribute width.



5
6
7
# File 'lib/binpack.rb', line 5

def width
  @width
end