Class: Ferret::Index::TermVectorsWriter::TVTerm
- Inherits:
-
Object
- Object
- Ferret::Index::TermVectorsWriter::TVTerm
- Defined in:
- lib/ferret/index/term_vectors_io.rb
Instance Attribute Summary collapse
-
#freq ⇒ Object
Returns the value of attribute freq.
-
#offsets ⇒ Object
Returns the value of attribute offsets.
-
#positions ⇒ Object
Returns the value of attribute positions.
-
#term_text ⇒ Object
Returns the value of attribute term_text.
Instance Method Summary collapse
-
#initialize(term_text = nil, freq = nil, positions = nil, offsets = nil) ⇒ TVTerm
constructor
A new instance of TVTerm.
Constructor Details
#initialize(term_text = nil, freq = nil, positions = nil, offsets = nil) ⇒ TVTerm
Returns a new instance of TVTerm.
190 191 192 193 194 195 |
# File 'lib/ferret/index/term_vectors_io.rb', line 190 def initialize(term_text=nil, freq=nil, positions=nil, offsets=nil) @term_text = term_text @freq = freq @positions = positions @offsets = offsets end |
Instance Attribute Details
#freq ⇒ Object
Returns the value of attribute freq.
188 189 190 |
# File 'lib/ferret/index/term_vectors_io.rb', line 188 def freq @freq end |
#offsets ⇒ Object
Returns the value of attribute offsets.
188 189 190 |
# File 'lib/ferret/index/term_vectors_io.rb', line 188 def offsets @offsets end |
#positions ⇒ Object
Returns the value of attribute positions.
188 189 190 |
# File 'lib/ferret/index/term_vectors_io.rb', line 188 def positions @positions end |
#term_text ⇒ Object
Returns the value of attribute term_text.
188 189 190 |
# File 'lib/ferret/index/term_vectors_io.rb', line 188 def term_text @term_text end |