lib/endeca/refinement.rb in endeca-1.3.8 vs lib/endeca/refinement.rb in endeca-1.4.0

- old
+ new

@@ -1,21 +1,20 @@ module Endeca class Refinement include Readers - extend ClassToProc reader 'DimensionName' => :name, 'ExpansionLink' => :expansion_link, 'ContractionLink' => :contraction_link integer_reader 'DimensionID' => :id reader('DimensionValues' => :dimension_values) do |values| - values.map(&Dimension) if values + values.map{|value| Dimension.new(value)} if values end reader('Dimensions' => :dimensions) do |values| - values.map(&RefinementDimension) if values + values.map{|value| RefinementDimension.new(value)} if values end attr_reader :raw def initialize(raw={}) @raw = raw