Class: Xapian::Posting
- Inherits:
-
Object
- Object
- Xapian::Posting
- Defined in:
- lib/xapian.rb
Overview
– Wrapper for the C++ class Xapian::PostingIterator
Instance Attribute Summary collapse
-
#docid ⇒ Object
Returns the value of attribute docid.
-
#doclength ⇒ Object
Returns the value of attribute doclength.
-
#wdf ⇒ Object
Returns the value of attribute wdf.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(docid, doclength, wdf) ⇒ Posting
constructor
A new instance of Posting.
Constructor Details
#initialize(docid, doclength, wdf) ⇒ Posting
Returns a new instance of Posting.
212 213 214 215 216 |
# File 'lib/xapian.rb', line 212 def initialize(docid, doclength, wdf) @docid = docid @doclength = doclength @wdf = wdf end |
Instance Attribute Details
#docid ⇒ Object
Returns the value of attribute docid.
210 211 212 |
# File 'lib/xapian.rb', line 210 def docid @docid end |
#doclength ⇒ Object
Returns the value of attribute doclength.
210 211 212 |
# File 'lib/xapian.rb', line 210 def doclength @doclength end |
#wdf ⇒ Object
Returns the value of attribute wdf.
210 211 212 |
# File 'lib/xapian.rb', line 210 def wdf @wdf end |