Class: FiveStar::Configuration Private

Inherits:
Object
  • Object
show all
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

Instance Method Details

#max_ratingObject

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 max_rating; 10.0; end

#max_weightingObject

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_ratingObject

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 min_rating; 0.0; end

#min_weightingObject

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