Class: ODBA::IndexDefinition
Overview
IndexDefinition is a convenience class. Load a yaml-dump of this and pass it to Cache#create_index to introduce new indices
Instance Attribute Summary collapse
-
#class_filter ⇒ Object
Returns the value of attribute class_filter.
-
#fulltext ⇒ Object
Returns the value of attribute fulltext.
-
#index_name ⇒ Object
Returns the value of attribute index_name.
-
#init_source ⇒ Object
Returns the value of attribute init_source.
-
#origin_klass ⇒ Object
Returns the value of attribute origin_klass.
-
#resolve_origin ⇒ Object
Returns the value of attribute resolve_origin.
-
#resolve_search_term ⇒ Object
Returns the value of attribute resolve_search_term.
-
#resolve_target ⇒ Object
Returns the value of attribute resolve_target.
-
#target_klass ⇒ Object
Returns the value of attribute target_klass.
Instance Method Summary collapse
-
#initialize ⇒ IndexDefinition
constructor
A new instance of IndexDefinition.
Constructor Details
#initialize ⇒ IndexDefinition
Returns a new instance of IndexDefinition.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/odba/index_definition.rb', line 11 def initialize @index_name = "" @origin_klass = "" @target_klass = "" @resolve_search_term = "" @resolve_target = "" @resolve_origin = "" @init_source = "" @fulltext = false @class_filter = :is_a? end |
Instance Attribute Details
#class_filter ⇒ Object
Returns the value of attribute class_filter.
8 9 10 |
# File 'lib/odba/index_definition.rb', line 8 def class_filter @class_filter end |
#fulltext ⇒ Object
Returns the value of attribute fulltext.
8 9 10 |
# File 'lib/odba/index_definition.rb', line 8 def fulltext @fulltext end |
#index_name ⇒ Object
Returns the value of attribute index_name.
8 9 10 |
# File 'lib/odba/index_definition.rb', line 8 def index_name @index_name end |
#init_source ⇒ Object
Returns the value of attribute init_source.
8 9 10 |
# File 'lib/odba/index_definition.rb', line 8 def init_source @init_source end |
#origin_klass ⇒ Object
Returns the value of attribute origin_klass.
8 9 10 |
# File 'lib/odba/index_definition.rb', line 8 def origin_klass @origin_klass end |
#resolve_origin ⇒ Object
Returns the value of attribute resolve_origin.
8 9 10 |
# File 'lib/odba/index_definition.rb', line 8 def resolve_origin @resolve_origin end |
#resolve_search_term ⇒ Object
Returns the value of attribute resolve_search_term.
8 9 10 |
# File 'lib/odba/index_definition.rb', line 8 def resolve_search_term @resolve_search_term end |
#resolve_target ⇒ Object
Returns the value of attribute resolve_target.
8 9 10 |
# File 'lib/odba/index_definition.rb', line 8 def resolve_target @resolve_target end |
#target_klass ⇒ Object
Returns the value of attribute target_klass.
8 9 10 |
# File 'lib/odba/index_definition.rb', line 8 def target_klass @target_klass end |