Class: SalesforceAdapter::Property::Boolean
- Inherits:
-
DataMapper::Property::Integer
- Object
- DataMapper::Property::Integer
- SalesforceAdapter::Property::Boolean
- Defined in:
- lib/dm-salesforce-adapter/property/boolean.rb
Constant Summary collapse
- FALSE =
0
- TRUE =
1
Instance Method Summary collapse
Instance Method Details
#custom? ⇒ Boolean
14 15 16 |
# File 'lib/dm-salesforce-adapter/property/boolean.rb', line 14 def custom? true end |
#load(value) ⇒ Object
6 7 8 |
# File 'lib/dm-salesforce-adapter/property/boolean.rb', line 6 def load(value) [true, 1, '1', 'true', 'TRUE'].include?(value) ? true : false end |