class Cassandra::Types::Date
Inherits
Methods
kind
Returns :date
new
(value)Coerces the value to Date
assert
(value, message = nil, &block)Asserts that a given value is a Date
- Void
- Return value of this method is ignored.
to_s
Returns "date"
Asserts that a given value is a Date
| 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 a Date |