Sha256: 13d76b99c0df8bf0f7cd7beed08065290ae1443bb81dff787e5c626f4a33f529

Contents?: true

Size: 245 Bytes

Versions: 3

Compression:

Stored size: 245 Bytes

Contents

module OData
  class BooleanType < PrimitiveType
    def valid_value?(value)
      TrueClass === value || FalseClass === value
    end

    def coerce(value)
      value
    end

    def name
      "Edm.Boolean"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
microsoft_graph-0.1.3 lib/odata/types/primitive_types/boolean_type.rb
microsoft_graph-0.1.1 lib/odata/types/primitive_types/boolean_type.rb
microsoft_graph-0.1.0 lib/odata/types/primitive_types/boolean_type.rb