Class: DataMapper::Adapters::SalesforceAdapter::Property::Boolean
- Inherits:
-
Property::Integer
- Object
- Property::Integer
- DataMapper::Adapters::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
#load(value) ⇒ Object
12 13 14 |
# File 'lib/dm-salesforce-adapter/property/boolean.rb', line 12 def load(value) [true, 1, '1', 'true', 'TRUE', TRUE].include?(value) ? true : false end |