Class: PushType::Primitives::ArrayType
- Defined in:
- lib/push_type/primitives/array_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 9 |
# File 'lib/push_type/primitives/array_type.rb', line 5 def to_json unless value.blank? Array(value).reject(&:blank?) end end |