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
77 78 79 |
# File 'lib/ddr/index/filter.rb', line 77 def has_content model "Component", "Attachment", "Target" end |
#is_governed_by(arg) ⇒ Object
81 82 83 |
# File 'lib/ddr/index/filter.rb', line 81 def is_governed_by(arg) term is_governed_by: get_uri(arg) end |
#is_member_of_collection(arg) ⇒ Object
85 86 87 |
# File 'lib/ddr/index/filter.rb', line 85 def is_member_of_collection(arg) term is_member_of_collection: get_uri(arg) end |
#is_part_of(arg) ⇒ Object
89 90 91 |
# File 'lib/ddr/index/filter.rb', line 89 def is_part_of(arg) term is_part_of: get_uri(arg) end |
#model(*models) ⇒ Object
93 94 95 |
# File 'lib/ddr/index/filter.rb', line 93 def model(*models) where active_fedora_model: models end |