Class: ActiveFedora::Rdf::NodeConfig::IndexObject
- Inherits:
-
Object
- Object
- ActiveFedora::Rdf::NodeConfig::IndexObject
- Defined in:
- lib/active_fedora/rdf/node_config.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.
26 27 28 29 |
# File 'lib/active_fedora/rdf/node_config.rb', line 26 def initialize @behaviors = [] @data_type = :string end |
Instance Attribute Details
#behaviors ⇒ Object
Returns the value of attribute behaviors.
25 26 27 |
# File 'lib/active_fedora/rdf/node_config.rb', line 25 def behaviors @behaviors end |
#data_type ⇒ Object
Returns the value of attribute data_type.
25 26 27 |
# File 'lib/active_fedora/rdf/node_config.rb', line 25 def data_type @data_type end |
Instance Method Details
#as(*args) ⇒ Object
30 31 32 |
# File 'lib/active_fedora/rdf/node_config.rb', line 30 def as(*args) @behaviors = args end |
#defaults ⇒ Object
36 37 38 |
# File 'lib/active_fedora/rdf/node_config.rb', line 36 def defaults :noop end |
#type(sym) ⇒ Object
33 34 35 |
# File 'lib/active_fedora/rdf/node_config.rb', line 33 def type(sym) @data_type = sym end |