Class: SimpleAbs::Alternative
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SimpleAbs::Alternative
- Defined in:
- lib/simple_abs.rb
Instance Method Summary collapse
- #conversion ⇒ Object
-
#error ⇒ Object
90 percent error.
Instance Method Details
#conversion ⇒ Object
74 75 76 77 78 |
# File 'lib/simple_abs.rb', line 74 def conversion if participants.present? && conversions.present? (participants.to_f/conversions.to_f).round(2) end end |
#error ⇒ Object
90 percent error
81 82 83 |
# File 'lib/simple_abs.rb', line 81 def error end |