Sha256: a8c4cdaa8daa5ad0c9192a87861a7b9407ad62e54fc4ef16c17a02b5bac76070

Contents?: true

Size: 200 Bytes

Versions: 7

Compression:

Stored size: 200 Bytes

Contents

module PushType
  module Primitives
    class ObjectType < Base

      def to_json
        unless value.blank? or value.values.all?(&:blank?)
          super
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
push_type_core-0.8.0.beta.1 lib/push_type/primitives/object_type.rb
push_type_core-0.7.0 lib/push_type/primitives/object_type.rb
push_type_core-0.7.0.beta.1 lib/push_type/primitives/object_type.rb
push_type_core-0.6.0 lib/push_type/primitives/object_type.rb
push_type_core-0.6.0.beta.4 lib/push_type/primitives/object_type.rb
push_type_core-0.6.0.beta.3 lib/push_type/primitives/object_type.rb
push_type_core-0.6.0.beta.2 lib/push_type/primitives/object_type.rb