Class: Oss::Field

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

Direct Known Subclasses

Document

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value, boost = 1.0) ⇒ Field

Returns a new instance of Field.



142
143
144
145
146
# File 'lib/oss_rb.rb', line 142

def initialize(name, value, boost=1.0)
  @name = name
  @value = value
  @boost =boost
end

Instance Attribute Details

#boostObject

Returns the value of attribute boost.



141
142
143
# File 'lib/oss_rb.rb', line 141

def boost
  @boost
end

#nameObject

Returns the value of attribute name.



141
142
143
# File 'lib/oss_rb.rb', line 141

def name
  @name
end

#valueObject

Returns the value of attribute value.



141
142
143
# File 'lib/oss_rb.rb', line 141

def value
  @value
end