Class: ActiveFedora::RdfNode::Builder::IndexObject
- Inherits:
-
Object
- Object
- ActiveFedora::RdfNode::Builder::IndexObject
- Defined in:
- lib/active_fedora/rdf_node.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.
204 205 206 207 |
# File 'lib/active_fedora/rdf_node.rb', line 204 def initialize @behaviors = [] @data_type = :string end |
Instance Attribute Details
#behaviors ⇒ Object
Returns the value of attribute behaviors.
203 204 205 |
# File 'lib/active_fedora/rdf_node.rb', line 203 def behaviors @behaviors end |
#data_type ⇒ Object
Returns the value of attribute data_type.
203 204 205 |
# File 'lib/active_fedora/rdf_node.rb', line 203 def data_type @data_type end |
Instance Method Details
#as(*args) ⇒ Object
208 209 210 |
# File 'lib/active_fedora/rdf_node.rb', line 208 def as(*args) @behaviors = args end |
#defaults ⇒ Object
214 215 216 |
# File 'lib/active_fedora/rdf_node.rb', line 214 def defaults :noop end |
#type(sym) ⇒ Object
211 212 213 |
# File 'lib/active_fedora/rdf_node.rb', line 211 def type(sym) @data_type = sym end |