Class: ActiveFedora::RDFDatastream::IndexObject
- Inherits:
-
Object
- Object
- ActiveFedora::RDFDatastream::IndexObject
- Defined in:
- lib/active_fedora/rdf_datastream.rb
Overview
this enables a cleaner API for solr integration
Instance Attribute Summary collapse
-
#behaviors ⇒ Object
Returns the value of attribute behaviors.
-
#data_type ⇒ Object
Returns the value of attribute data_type.
Instance Method Summary collapse
- #as(*args) ⇒ Object
- #defaults ⇒ Object
-
#initialize ⇒ IndexObject
constructor
A new instance of IndexObject.
- #type(sym) ⇒ Object
Constructor Details
#initialize ⇒ IndexObject
Returns a new instance of IndexObject.
8 9 10 11 |
# File 'lib/active_fedora/rdf_datastream.rb', line 8 def initialize @behaviors = [:searchable] @data_type = :string end |
Instance Attribute Details
#behaviors ⇒ Object
Returns the value of attribute behaviors.
7 8 9 |
# File 'lib/active_fedora/rdf_datastream.rb', line 7 def behaviors @behaviors end |
#data_type ⇒ Object
Returns the value of attribute data_type.
7 8 9 |
# File 'lib/active_fedora/rdf_datastream.rb', line 7 def data_type @data_type end |
Instance Method Details
#as(*args) ⇒ Object
12 13 14 |
# File 'lib/active_fedora/rdf_datastream.rb', line 12 def as(*args) @behaviors = args end |
#defaults ⇒ Object
18 19 20 |
# File 'lib/active_fedora/rdf_datastream.rb', line 18 def defaults :noop end |
#type(sym) ⇒ Object
15 16 17 |
# File 'lib/active_fedora/rdf_datastream.rb', line 15 def type(sym) @data_type = sym end |