Inherits

Methods

new

(*values)

Coerces the value to Cassandra::Tuple

Examples:
Creating a tuple
include Cassandra::Types

tuple(varchar, varchar, int).new('Jane', 'Smith', 38) # => (Jane, Smith, 38)
Parameters:
Name Type Details
values *Object tuple values
Returns:
Type Details
Tuple value
See Also:

assert

(value, message = nil, &block)

Asserts that a given value is an Cassandra::Tuple

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 not an Cassandra::Tuple
See Also:

to_s

Returns "tuple<type, type, type...>"

Returns:
Type Details
String "tuple<type, type, type...>"
See Also:

hash

eql?

(other) aliased as: ==
Returns:
Type Details
Boolean