module Stack class Configuration attr_accessor :source, :target def initialize(hash = nil) self.from_hash(hash) end def from_hash(hash) if (hash != nil) @source = hash[:source] @target = hash[:target] end end end end