Class: FiveStar::Configuration Private
- Inherits:
-
Object
- Object
- FiveStar::Configuration
- Defined in:
- lib/five-star/configuration.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Default configuration of rating values and weighting.
Constant Summary collapse
- DEFAULT_WEIGHTING =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
1.0.freeze
Instance Method Summary collapse
- #max_rating ⇒ Object private
- #max_weighting ⇒ Object private
- #min_rating ⇒ Object private
- #min_weighting ⇒ Object private
Instance Method Details
#max_rating ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 |
# File 'lib/five-star/configuration.rb', line 9 def ; 10.0; end |
#max_weighting ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 |
# File 'lib/five-star/configuration.rb', line 12 def max_weighting; 1.0; end |
#min_rating ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 |
# File 'lib/five-star/configuration.rb', line 8 def ; 0.0; end |
#min_weighting ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 |
# File 'lib/five-star/configuration.rb', line 11 def min_weighting; 0.0; end |