class Cassandra::Argument

Represents a function argument

Attributes

name[R]

@return [String] column name

type[R]

@return [Cassandra::Type] column type

Public Class Methods

new(name, type) click to toggle source

@private

   # File lib/cassandra/argument.rb
28 def initialize(name, type)
29   @name = name
30   @type = type
31 end

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source

@private

   # File lib/cassandra/argument.rb
34 def eql?(other)
35   other.is_a?(Argument) && \
36     @name == other.name && \
37     @type == other.type
38 end
Also aliased as: ==
hash() click to toggle source

@private

   # File lib/cassandra/argument.rb
42 def hash
43   @hash ||= begin
44     h = 17
45     h = 31 * h + @name.hash
46     h = 31 * h + @type.hash
47     h
48   end
49 end