Method: Endeca::Document#dimensions

Defined in:
lib/endeca/document.rb

#dimensionsObject

Returns the collection of Endeca::Dimension for the given Document



49
50
51
52
53
54
55
56
57
# File 'lib/endeca/document.rb', line 49

def dimensions
  return @dimensions if @dimensions
  @dimensions = {}
  (raw['Dimensions'] || {}).each do |name, values|
    values = [values] unless Array === values
    @dimensions[name] = values.map{|value| Dimension.new(value)}
  end
  @dimensions
end