Class: ActiveTriples::NodeConfig::IndexObject
- Inherits:
-
Object
- Object
- ActiveTriples::NodeConfig::IndexObject
- Defined in:
- lib/active_triples/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.
50 51 52 53 |
# File 'lib/active_triples/node_config.rb', line 50 def initialize @behaviors = [] @data_type = :string end |
Instance Attribute Details
#behaviors ⇒ Object
Returns the value of attribute behaviors.
49 50 51 |
# File 'lib/active_triples/node_config.rb', line 49 def behaviors @behaviors end |
#data_type ⇒ Object
Returns the value of attribute data_type.
49 50 51 |
# File 'lib/active_triples/node_config.rb', line 49 def data_type @data_type end |
Instance Method Details
#as(*args) ⇒ Object
54 55 56 |
# File 'lib/active_triples/node_config.rb', line 54 def as(*args) @behaviors = args end |
#defaults ⇒ Object
60 61 62 |
# File 'lib/active_triples/node_config.rb', line 60 def defaults :noop end |
#type(sym) ⇒ Object
57 58 59 |
# File 'lib/active_triples/node_config.rb', line 57 def type(sym) @data_type = sym end |