Module: Ddr::Index::Filter::ClassMethods
Instance Method Summary collapse
- #has_content ⇒ Object
- #is_governed_by(arg) ⇒ Object
- #is_member_of_collection(arg) ⇒ Object
- #is_part_of(arg) ⇒ Object
- #model(*models) ⇒ Object
Instance Method Details
#has_content ⇒ Object
78 79 80 |
# File 'lib/ddr/index/filter.rb', line 78 def has_content model "Component", "Attachment", "Target" end |
#is_governed_by(arg) ⇒ Object
82 83 84 |
# File 'lib/ddr/index/filter.rb', line 82 def is_governed_by(arg) term is_governed_by: get_uri(arg) end |
#is_member_of_collection(arg) ⇒ Object
86 87 88 |
# File 'lib/ddr/index/filter.rb', line 86 def is_member_of_collection(arg) term is_member_of_collection: get_uri(arg) end |
#is_part_of(arg) ⇒ Object
90 91 92 |
# File 'lib/ddr/index/filter.rb', line 90 def is_part_of(arg) term is_part_of: get_uri(arg) end |
#model(*models) ⇒ Object
94 95 96 |
# File 'lib/ddr/index/filter.rb', line 94 def model(*models) where active_fedora_model: models end |