class Cassandra::Types::Set
Inherits
Methods
new
(*value)Coerces the value to Set
assert
(value, message = nil, &block)Asserts that a given value is an Set
- Void
- Return value of this method is ignored.
to_s
Returns "set<type>"
Coerces the value to Set
include Cassandra::Types
set(varchar).new('Jane', 'Alice', 'Loren') => #<Set: {"Jane", "Alice", "Loren"}>
include Cassandra::Types
set(varchar).new(Set['Jane', 'Alice', 'Loren']) => #<Set: {"Jane", "Alice", "Loren"}>
include Cassandra::Types
set(varchar).new(['Jane', 'Alice', 'Loren']) => #<Set: {"Jane", "Alice", "Loren"}>
Name | Type | Details |
---|---|---|
value | Object |
original value |
Type | Details |
---|---|
Set |
value |
Asserts that a given value is an Set
Name | Type | Details |
---|---|---|
value | Object |
value to be validated |
message | String |
(defaults to: nil )
error message to use when assertion fails
|
Type | Details |
---|---|
String |
error message to use when assertion fails |
Type | Details |
---|---|
ArgumentError |
if the value is not an Set |
Type | Details |
---|---|
Boolean |