Class: PushType::Primitives::ArrayType

Inherits:
Base show all
Defined in:
lib/push_type/primitives/array_type.rb

Instance Attribute Summary

Attributes inherited from Base

#value

Instance Method Summary collapse

Methods inherited from Base

#initialize, to_json

Constructor Details

This class inherits a constructor from PushType::Primitives::Base

Instance Method Details

#to_jsonObject



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