Class: DataMapper::Adapters::SalesforceAdapter::Property::Serial

Inherits:
Property::String
  • Object
show all
Defined in:
lib/dm-salesforce-adapter/property/serial.rb

Instance Method Summary collapse

Instance Method Details

#typecast(value) ⇒ Object



13
14
15
# File 'lib/dm-salesforce-adapter/property/serial.rb', line 13

def typecast(value)
  value.to_str[0..14] unless value.nil? || value.empty?
end