lib/endeca/document_collection.rb in primedia-endeca-0.9.7 vs lib/endeca/document_collection.rb in primedia-endeca-0.9.8
- old
+ new
@@ -65,9 +65,14 @@
# The collection of Refinement objects for the collection.
def refinements
@refinements ||= (@raw['Refinements'] || []).map(&Refinement)
end
+ # The collection of Breadcrumb objects for the collection.
+ def breadcrumbs
+ @breadcrumbs ||= (@raw['Breadcrumbs'] || []).map(&Breadcrumb)
+ end
+
# Return the refinement by name
def refinement_by_name(name)
refinements.find{|ref| ref.name.downcase == name.downcase}
end