Class: Xapian::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/xapian.rb

Overview

Ruby wrapper for Xapian::ValueIterator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, valueno, docid) ⇒ Value

Returns a new instance of Value.



129
130
131
132
133
# File 'lib/xapian.rb', line 129

def initialize(value, valueno, docid)
  @value = value
  @valueno = valueno
  @docid = docid
end

Instance Attribute Details

#docidObject

Returns the value of attribute docid.



127
128
129
# File 'lib/xapian.rb', line 127

def docid
  @docid
end

#valueObject

Returns the value of attribute value.



127
128
129
# File 'lib/xapian.rb', line 127

def value
  @value
end

#valuenoObject

Returns the value of attribute valueno.



127
128
129
# File 'lib/xapian.rb', line 127

def valueno
  @valueno
end

Instance Method Details

#==(other) ⇒ Object

initialize



135
136
137
# File 'lib/xapian.rb', line 135

def ==(other)
  return other.is_a?(Xapian::Value) && other.value == @value && other.valueno == @valueno && other.docid == @docid
end