Class: Oss::Field
- Inherits:
-
Object
- Object
- Oss::Field
- Defined in:
- lib/oss_rb.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#boost ⇒ Object
Returns the value of attribute boost.
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value, boost = 1.0) ⇒ Field
constructor
A new instance of Field.
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
#boost ⇒ Object
Returns the value of attribute boost.
141 142 143 |
# File 'lib/oss_rb.rb', line 141 def boost @boost end |
#name ⇒ Object
Returns the value of attribute name.
141 142 143 |
# File 'lib/oss_rb.rb', line 141 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
141 142 143 |
# File 'lib/oss_rb.rb', line 141 def value @value end |