lib/stubs.rb in rkneufeld-fuzzy-realty-0.1.0 vs lib/stubs.rb in rkneufeld-fuzzy-realty-0.3.0

- old
+ new

@@ -1,8 +1,8 @@ module FuzzyRealty class Listing - attr_accessor :price, :sqft, :location + attr_accessor :price, :sqft, :location, :style def initialize(values={}) values.each_key {|k| instance_variable_set(:"@#{k}", values[k])} end end @@ -12,11 +12,11 @@ @params = params end end class Parameter - attr_accessor :required, :type, :desired - def initialize(required,type,desired) + attr_accessor :required, :type, :desired, :style + def initialize(type,desired,required=false) @required,@type,@desired = required, type, desired end end end \ No newline at end of file