Class: LedgerSync::Type::Date

Inherits:
ActiveModel::Type::Date
  • Object
show all
Includes:
ValueMixin
Defined in:
lib/ledger_sync/type/date.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/date.rb', line 8

def type
  :date
end

#valid_classesObject



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

def valid_classes
  [::Date]
end