Class: Droonga::Catalog::Schema::ColumnIndexOptions
- Inherits:
-
Object
- Object
- Droonga::Catalog::Schema::ColumnIndexOptions
- Defined in:
- lib/droonga/catalog/schema.rb
Instance Method Summary collapse
- #flags ⇒ Object
-
#initialize(data) ⇒ ColumnIndexOptions
constructor
A new instance of ColumnIndexOptions.
- #position ⇒ Object
- #section ⇒ Object
- #sources ⇒ Object
- #weight ⇒ Object
Constructor Details
#initialize(data) ⇒ ColumnIndexOptions
Returns a new instance of ColumnIndexOptions.
38 39 40 |
# File 'lib/droonga/catalog/schema.rb', line 38 def initialize(data) @data = data end |
Instance Method Details
#flags ⇒ Object
58 59 60 61 62 63 64 |
# File 'lib/droonga/catalog/schema.rb', line 58 def flags flags = [] flags << "WITH_SECTION" if section flags << "WITH_WEIGHT" if weight flags << "WITH_POSITION" if position flags end |
#position ⇒ Object
50 51 52 |
# File 'lib/droonga/catalog/schema.rb', line 50 def position @data["position"] end |
#section ⇒ Object
42 43 44 |
# File 'lib/droonga/catalog/schema.rb', line 42 def section @data["section"] end |
#sources ⇒ Object
54 55 56 |
# File 'lib/droonga/catalog/schema.rb', line 54 def sources @data["sources"] end |
#weight ⇒ Object
46 47 48 |
# File 'lib/droonga/catalog/schema.rb', line 46 def weight @data["weight"] end |