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.
12 13 14 15 |
# File 'lib/active_fedora/rdf_datastream.rb', line 12 def initialize @behaviors = [:searchable] @data_type = :string end |
Instance Attribute Details
#behaviors ⇒ Object
Returns the value of attribute behaviors.
11 12 13 |
# File 'lib/active_fedora/rdf_datastream.rb', line 11 def behaviors @behaviors end |
#data_type ⇒ Object
Returns the value of attribute data_type.
11 12 13 |
# File 'lib/active_fedora/rdf_datastream.rb', line 11 def data_type @data_type end |
Instance Method Details
#as(*args) ⇒ Object
16 17 18 |
# File 'lib/active_fedora/rdf_datastream.rb', line 16 def as(*args) @behaviors = args end |
#defaults ⇒ Object
22 23 24 |
# File 'lib/active_fedora/rdf_datastream.rb', line 22 def defaults :noop end |
#type(sym) ⇒ Object
19 20 21 |
# File 'lib/active_fedora/rdf_datastream.rb', line 19 def type(sym) @data_type = sym end |