Class: Cequel::Schema::Patch::AbstractChange

Inherits:
Object
  • Object
show all
Defined in:
lib/cequel/schema/patch.rb

Overview

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tableObject (readonly)

Since:

  • 1.0.0



30
31
32
# File 'lib/cequel/schema/patch.rb', line 30

def table
  @table
end

Instance Method Details

#==(other) ⇒ Object

Since:

  • 1.0.0



40
41
42
43
44
# File 'lib/cequel/schema/patch.rb', line 40

def ==(other)
  other.class == self.class &&
    other.table == self.table &&
    subclass_eql?(other)
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)

Since:

  • 1.0.0



46
47
48
# File 'lib/cequel/schema/patch.rb', line 46

def eql?(other)
  self == other
end

#inspectObject

Since:

  • 1.0.0



36
37
38
# File 'lib/cequel/schema/patch.rb', line 36

def inspect
  "#<#{self.class.name} #{to_cql}>"
end

#to_cqlObject

Since:

  • 1.0.0



32
33
34
# File 'lib/cequel/schema/patch.rb', line 32

def to_cql
  fail NotImplementedError
end