Contents
- Usage page
-
API docs index
-
Cassandra module
- AddressResolution module
- Auth module
- Compression module
- Error module
- Errors module
- Execution module
- LoadBalancing module
- Reconnection module
- Retry module
- Statement module
- Statements module
- Types module
- Cluster class
- Column class
- Future class
- Host class
- Keyspace class
- Listener class
- Result class
- Session class
- Table class
- TimeUuid class
- Tuple class
- Type class
- UDT class
- Uuid class
-
Cassandra module
Inherits
Methods
Coerces the value to Set
- Examples:
-
- Creating a set using splat arguments
include Cassandra::Types set(varchar).new('Jane', 'Alice', 'Loren') => #<Set: {"Jane", "Alice", "Loren"}>
- Coercing an existing set
include Cassandra::Types set(varchar).new(Set['Jane', 'Alice', 'Loren']) => #<Set: {"Jane", "Alice", "Loren"}>
- Coercing an array
include Cassandra::Types set(varchar).new(['Jane', 'Alice', 'Loren']) => #<Set: {"Jane", "Alice", "Loren"}>
- Parameters:
-
Name Type Details value Object
original value - Returns:
-
Type Details Set
value - See Also:
Asserts that a given value is an Set
- 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 Set - See Also:
- Returns:
-
Type Details Boolean