Class: PushType::Primitives::BooleanType
- Defined in:
- lib/push_type/primitives/boolean_type.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from PushType::Primitives::Base
Instance Method Details
#to_json ⇒ Object
5 6 7 8 |
# File 'lib/push_type/primitives/boolean_type.rb', line 5 def to_json return nil if value.nil? value.to_bool end |