Class: LedgerSync::Type::Float

Inherits:
ActiveModel::Type::Float
  • Object
show all
Includes:
ValueMixin
Defined in:
lib/ledger_sync/type/float.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from ValueMixin

#cast?, #error_message, included, #valid_without_casting?

Instance Method Details

#typeObject



8
9
10
# File 'lib/ledger_sync/type/float.rb', line 8

def type
  :float
end

#valid_classesObject



12
13
14
# File 'lib/ledger_sync/type/float.rb', line 12

def valid_classes
  [::Float]
end