Class: Cassandra::Type Abstract
- Inherits:
-
Object
- Object
- Cassandra::Type
- Defined in:
- lib/cassandra/types.rb
Overview
This class exists for documentation purposes only
Base class for all cassandra types.
Direct Known Subclasses
Cassandra::Types::Ascii, Cassandra::Types::Bigint, Cassandra::Types::Blob, Cassandra::Types::Boolean, Cassandra::Types::Counter, Cassandra::Types::Custom, Cassandra::Types::Decimal, Cassandra::Types::Double, Cassandra::Types::Float, Cassandra::Types::Inet, Cassandra::Types::Int, Cassandra::Types::List, Cassandra::Types::Map, Cassandra::Types::Set, Cassandra::Types::Text, Cassandra::Types::Timestamp, Cassandra::Types::Timeuuid, Cassandra::Types::Tuple, Cassandra::Types::UserDefined, Cassandra::Types::Uuid, Cassandra::Types::Varchar, Cassandra::Types::Varint
Instance Method Summary collapse
-
#assert(value, message = nil, &block) ⇒ void
Asserts that a given value is of this type.
-
#kind ⇒ Symbol
Shorthand type name.
-
#new(*values) ⇒ Object
Coerces a given value to this type.
-
#to_s ⇒ String
A cassandra representation of this type.
Instance Method Details
#assert(value, message = nil, &block) ⇒ void
This method returns an undefined value.
Asserts that a given value is of this type
40 41 |
# File 'lib/cassandra/types.rb', line 40 def assert(value, = nil, &block) end |
#kind ⇒ Symbol
Returns shorthand type name.
24 25 |
# File 'lib/cassandra/types.rb', line 24 def kind end |
#new(*values) ⇒ Object
Coerces a given value to this type
31 32 |
# File 'lib/cassandra/types.rb', line 31 def new(*values) end |
#to_s ⇒ String
Returns a cassandra representation of this type.
44 45 |
# File 'lib/cassandra/types.rb', line 44 def to_s end |