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.
41 42 43 44 |
# File 'lib/active_fedora/rdf/node_config.rb', line 41 def initialize @behaviors = [] @data_type = :string end |
Instance Attribute Details
#behaviors ⇒ Object
Returns the value of attribute behaviors.
40 41 42 |
# File 'lib/active_fedora/rdf/node_config.rb', line 40 def behaviors @behaviors end |
#data_type ⇒ Object
Returns the value of attribute data_type.
40 41 42 |
# File 'lib/active_fedora/rdf/node_config.rb', line 40 def data_type @data_type end |
Instance Method Details
#as(*args) ⇒ Object
45 46 47 |
# File 'lib/active_fedora/rdf/node_config.rb', line 45 def as(*args) @behaviors = args end |
#defaults ⇒ Object
51 52 53 |
# File 'lib/active_fedora/rdf/node_config.rb', line 51 def defaults :noop end |
#type(sym) ⇒ Object
48 49 50 |
# File 'lib/active_fedora/rdf/node_config.rb', line 48 def type(sym) @data_type = sym end |