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
Instance Method Summary collapse
- #as(*args) ⇒ Array<Symbol>
-
#defaults ⇒ Symbol
deprecated
Deprecated.
Omit calls to this method; it has always been a no-op.
-
#initialize ⇒ IndexObject
constructor
A new instance of IndexObject.
- #type(sym) ⇒ Object
Constructor Details
#initialize ⇒ IndexObject
Returns a new instance of IndexObject.
91 92 93 94 |
# File 'lib/active_triples/node_config.rb', line 91 def initialize @behaviors = [] @data_type = :string end |
Instance Attribute Details
#behaviors ⇒ Enumerator<Symbol>
89 |
# File 'lib/active_triples/node_config.rb', line 89 attr_accessor :data_type, :behaviors |
#data_type ⇒ Symbol
89 90 91 |
# File 'lib/active_triples/node_config.rb', line 89 def data_type @data_type end |
Instance Method Details
#as(*args) ⇒ Array<Symbol>
100 101 102 |
# File 'lib/active_triples/node_config.rb', line 100 def as(*args) @behaviors = args end |
#defaults ⇒ Symbol
Deprecated.
Omit calls to this method; it has always been a no-op.
Returns :noop.
114 115 116 117 118 119 |
# File 'lib/active_triples/node_config.rb', line 114 def defaults # no-op warn 'DEPRECATION: `ActiveTriples::NodeConfig::IndexObject#defaults` ' \ 'will be removed in 1.0. If you are doing `index.defaults` in a ' \ 'property config block, you can simply omit the call.' :noop end |
#type(sym) ⇒ Object
106 107 108 |
# File 'lib/active_triples/node_config.rb', line 106 def type(sym) @data_type = sym end |