Class: LedgerSync::NetSuite::Type::DeserializerActiveType
- Inherits:
-
Type::Value
- Object
- Type::Value
- LedgerSync::NetSuite::Type::DeserializerActiveType
- Defined in:
- lib/ledger_sync/netsuite/type/deserializer_active_type.rb
Instance Method Summary collapse
Instance Method Details
#cast_value(args = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/ledger_sync/netsuite/type/deserializer_active_type.rb', line 7 def cast_value(args = {}) value = args.fetch(:value) return if value.nil? case value when 'F' true when 'T' false else raise 'Unknown value' end end |