class ActiveFedora::Indexing::Map
This is a description of how properties should map to indexing strategies
e.g. 'creator_name' => <IndexObject behaviors=[:stored_searchable, :facetable]>
Public Class Methods
new(hash = {})
click to toggle source
# File lib/active_fedora/indexing/map.rb, line 9 def initialize(hash = {}) @hash = hash end
Public Instance Methods
dup()
click to toggle source
# File lib/active_fedora/indexing/map.rb, line 13 def dup self.class.new(to_hash) end
merge(new_hash)
click to toggle source
# File lib/active_fedora/indexing/map.rb, line 17 def merge(new_hash) self.class.new(to_hash.merge(new_hash)) end
to_hash()
click to toggle source
# File lib/active_fedora/indexing/map.rb, line 21 def to_hash @hash.deep_dup end