class PgSync::Table

Attributes

name[R]
schema[R]

Public Class Methods

new(schema, name) click to toggle source
# File lib/pgsync/table.rb, line 6
def initialize(schema, name)
  @schema = schema
  @name = name
end

Public Instance Methods

eql?(other) click to toggle source
# File lib/pgsync/table.rb, line 15
def eql?(other)
  other.schema == schema && other.name == name
end
full_name() click to toggle source
# File lib/pgsync/table.rb, line 11
def full_name
  "#{schema}.#{name}"
end
hash() click to toggle source

override hash when overriding eql?

# File lib/pgsync/table.rb, line 20
def hash
  [schema, name].hash
end
to_s() click to toggle source
# File lib/pgsync/table.rb, line 24
def to_s
  full_name
end