Class: LedgerSync::Type::String

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

def type
  :string
end

#valid_classesObject



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

def valid_classes
  [::String]
end