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