Class: DataMapper::Adapters::SalesforceAdapter::Property::Serial
- Inherits:
-
Property::String
- Object
- Property::String
- DataMapper::Adapters::SalesforceAdapter::Property::Serial
- 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 |