Class: ShareWith::ServiceDataType::Boolean
- Inherits:
-
BasicDataType
- Object
- BasicDataType
- ShareWith::ServiceDataType::Boolean
- Defined in:
- lib/share_with/service_data.rb
Overview
Define a boolean type.
Instance Attribute Summary
Attributes inherited from BasicDataType
Instance Method Summary collapse
Methods inherited from BasicDataType
Constructor Details
This class inherits a constructor from ShareWith::ServiceDataType::BasicDataType
Instance Method Details
#value=(val) ⇒ Object
41 42 43 |
# File 'lib/share_with/service_data.rb', line 41 def value=(val) @value = [true, "true", 1, "1"].include? val end |