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