Module: Textoken::NumericOption
- Includes:
- TokenizableOption
- Defined in:
- lib/textoken/options/modules/numeric_option.rb
Overview
This module will be shared in options like, more_than and less_than
Instance Attribute Summary collapse
-
#findings ⇒ Object
readonly
Returns the value of attribute findings.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Attributes included from TokenizableOption
Instance Method Summary collapse
Methods included from TokenizableOption
Instance Attribute Details
#findings ⇒ Object (readonly)
Returns the value of attribute findings.
6 7 8 |
# File 'lib/textoken/options/modules/numeric_option.rb', line 6 def findings @findings end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
6 7 8 |
# File 'lib/textoken/options/modules/numeric_option.rb', line 6 def number @number end |
Instance Method Details
#initialize(value) ⇒ Object
12 13 14 15 16 |
# File 'lib/textoken/options/modules/numeric_option.rb', line 12 def initialize(value) @number = value @findings = Findings.new validate_option_value end |
#priority ⇒ Object
8 9 10 |
# File 'lib/textoken/options/modules/numeric_option.rb', line 8 def priority 2 end |