Sha256: a762cbc8ff32db3bffd62cc3ab6f417cef9b76af8a45482c2b00e17a96360a85

Contents?: true

Size: 167 Bytes

Versions: 30

Compression:

Stored size: 167 Bytes

Contents

module PushType
  module Primitives
    class BooleanType < Base

      def to_json
        return nil if value.nil?
        value.to_bool
      end

    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
push_type_core-0.12.1 lib/push_type/primitives/boolean_type.rb
push_type_core-0.12.0 lib/push_type/primitives/boolean_type.rb
push_type_core-0.12.0.beta.1 lib/push_type/primitives/boolean_type.rb
push_type_core-0.11.2 lib/push_type/primitives/boolean_type.rb
push_type_core-0.11.1 lib/push_type/primitives/boolean_type.rb
push_type_core-0.11.0.beta.2 lib/push_type/primitives/boolean_type.rb
push_type_core-0.11.0.beta.1 lib/push_type/primitives/boolean_type.rb
push_type_core-0.10.4 lib/push_type/primitives/boolean_type.rb
push_type_core-0.10.3 lib/push_type/primitives/boolean_type.rb
push_type_core-0.10.2 lib/push_type/primitives/boolean_type.rb
push_type_core-0.10.1 lib/push_type/primitives/boolean_type.rb
push_type_core-0.10.0 lib/push_type/primitives/boolean_type.rb
push_type_core-0.10.0.beta.5 lib/push_type/primitives/boolean_type.rb
push_type_core-0.10.0.beta.3 lib/push_type/primitives/boolean_type.rb
push_type_core-0.9.5 lib/push_type/primitives/boolean_type.rb
push_type_core-0.9.3 lib/push_type/primitives/boolean_type.rb
push_type_core-0.9.2 lib/push_type/primitives/boolean_type.rb
push_type_core-0.9.1 lib/push_type/primitives/boolean_type.rb
push_type_core-0.9.0 lib/push_type/primitives/boolean_type.rb
push_type_core-0.9.0.beta.4 lib/push_type/primitives/boolean_type.rb