Base class for all cassandra types.

Abstract
This class exists for documentation purposes only

Inherits

Object

Direct Known Subclasses

Methods

kind

Returns shorthand type name

Returns:
Type Details
Symbol shorthand type name

new

(*values)

Coerces a given value to this type

Parameters:
Name Type Details
values *Object value to be coerced
Returns:
Type Details
Object a value of this type

assert

(value, message = nil, &block)

Asserts that a given value is of this type

Void
Return value of this method is ignored.
Parameters:
Name Type Details
value Object value to be validated
message String (defaults to: nil) error message to use when assertion fails
Yield Returns:
Type Details
String error message to use when assertion fails
Raises:
Type Details
ArgumentError if the value is invalid

to_s

Returns a cassandra representation of this type

Returns:
Type Details
String a cassandra representation of this type