Class: FeeForm

Inherits:
BaseForm show all
Defined in:
app/forms/fee_form.rb

Overview

A form object for the court fee Note that this form captures the fee as an integer, but exports it as a float this allows the underlying calculation engine to use floats for precision (i.e. rounding at the end of, not during calculations)

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from BaseForm

attribute?, #export, new_ignoring_extras, #type, #valid?

Instance Attribute Details

#feeInteger


8
# File 'app/forms/fee_form.rb', line 8

attribute :fee, :strict_integer

Class Method Details

.typeSymbol

The type of the form


15
16
17
# File 'app/forms/fee_form.rb', line 15

def self.type
  :fee
end