Method: Zyps::Enclosure#initialize

Defined in:
lib/zyps/environmental_factors.rb

#initialize(options = {}) ⇒ Enclosure

Takes a hash with these keys and defaults: :left => 0 :top => 0 :right => 0 :bottom => 0



41
42
43
44
45
46
47
48
49
# File 'lib/zyps/environmental_factors.rb', line 41

def initialize(options = {})
	options = {
		:left => 0,
		:top => 0,
		:right => 0,
		:bottom => 0
	}.merge(options)
	self.left, self.top, self.right, self.bottom = options[:left], options[:top], options[:right], options[:bottom]
end