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