Class: SimpleAbs::Alternative

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/simple_abs.rb

Instance Method Summary collapse

Instance Method Details

#conversionObject



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

#errorObject

90 percent error



81
82
83
# File 'lib/simple_abs.rb', line 81

def error

end