class PgSync::Sequence

Attributes

column[R]
name[R]
schema[R]

Public Class Methods

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

Public Instance Methods

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

override hash when overriding eql?

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