Class: Cequel::Type::Boolean

Inherits:
Base
  • Object
show all
Defined in:
lib/cequel/type.rb

Overview

`boolean` types store boolean values

See Also:

Since:

  • 1.0.0

Instance Method Summary collapse

Methods inherited from Base

#compatible_types, #cql_aliases, #cql_name, #internal_name, #internal_names, #to_s

Instance Method Details

#cast(value) ⇒ Object

Since:

  • 1.0.0


246
247
248
# File 'lib/cequel/type.rb', line 246

def cast(value)
  !!value
end