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.
168 169 170 171 |
# File 'lib/active_fedora/rdf_node.rb', line 168 def initialize @behaviors = [] @data_type = :string end |
Instance Attribute Details
#behaviors ⇒ Object
Returns the value of attribute behaviors.
167 168 169 |
# File 'lib/active_fedora/rdf_node.rb', line 167 def behaviors @behaviors end |
#data_type ⇒ Object
Returns the value of attribute data_type.
167 168 169 |
# File 'lib/active_fedora/rdf_node.rb', line 167 def data_type @data_type end |
Instance Method Details
#as(*args) ⇒ Object
172 173 174 |
# File 'lib/active_fedora/rdf_node.rb', line 172 def as(*args) @behaviors = args end |
#defaults ⇒ Object
178 179 180 |
# File 'lib/active_fedora/rdf_node.rb', line 178 def defaults :noop end |
#type(sym) ⇒ Object
175 176 177 |
# File 'lib/active_fedora/rdf_node.rb', line 175 def type(sym) @data_type = sym end |