class Cassandra::Types::UserDefined::Field

Attributes

name[R]

@return [String] name of this field

type[R]

@return [Cassandra::Type] type of this field

Public Class Methods

new(name, type) click to toggle source

@private

     # File lib/cassandra/types.rb
1177 def initialize(name, type)
1178   @name = name
1179   @type = type
1180 end

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
     # File lib/cassandra/types.rb
1197 def eql?(other)
1198   other.is_a?(Field) &&
1199     @name == other.name &&
1200     @type == other.type
1201 end
Also aliased as: ==
hash() click to toggle source
     # File lib/cassandra/types.rb
1188 def hash
1189   @hash ||= begin
1190     h = 17
1191     h = 31 * h + @name.hash
1192     h = 31 * h + @type.hash
1193     h
1194   end
1195 end
to_s() click to toggle source

String representation of the field @return [String] String representation of the field

     # File lib/cassandra/types.rb
1184 def to_s
1185   "#{@name} #{@type}"
1186 end