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 1218 def initialize(name, type) 1219 @name = name 1220 @type = type 1221 end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/cassandra/types.rb 1238 def eql?(other) 1239 other.is_a?(Field) && 1240 @name == other.name && 1241 @type == other.type 1242 end
Also aliased as: ==
hash()
click to toggle source
# File lib/cassandra/types.rb 1229 def hash 1230 @hash ||= begin 1231 h = 17 1232 h = 31 * h + @name.hash 1233 h = 31 * h + @type.hash 1234 h 1235 end 1236 end
to_s()
click to toggle source
String representation of the field @return [String] String representation of the field
# File lib/cassandra/types.rb 1225 def to_s 1226 "#{@name} #{@type}" 1227 end