Class: Cassandra::Column
- Inherits:
-
Object
- Object
- Cassandra::Column
- Defined in:
- lib/cassandra/column.rb
Overview
Represents a cassandra column
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Column name.
-
#order ⇒ Symbol
readonly
Column order (
:asc
or:desc
). -
#type ⇒ Cassandra::Type
readonly
Column type.
Instance Method Summary collapse
-
#frozen? ⇒ Boolean
Whether the column is frozen.
-
#static? ⇒ Boolean
Whether the column is static.
Instance Attribute Details
#name ⇒ String (readonly)
Returns column name.
25 26 27 |
# File 'lib/cassandra/column.rb', line 25 def name @name end |
#order ⇒ Symbol (readonly)
Returns column order (:asc
or :desc
).
29 30 31 |
# File 'lib/cassandra/column.rb', line 29 def order @order end |
#type ⇒ Cassandra::Type (readonly)
Returns column type.
27 28 29 |
# File 'lib/cassandra/column.rb', line 27 def type @type end |
Instance Method Details
#frozen? ⇒ Boolean
Returns whether the column is frozen.
46 47 48 |
# File 'lib/cassandra/column.rb', line 46 def frozen? @frozen end |
#static? ⇒ Boolean
Returns whether the column is static.
41 42 43 |
# File 'lib/cassandra/column.rb', line 41 def static? @static end |