Class: PgShrink::TableFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/pg_shrink/table_filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table, opts = nil, &block) ⇒ TableFilter

Returns a new instance of TableFilter.



4
5
6
7
8
# File 'lib/pg_shrink/table_filter.rb', line 4

def initialize(table, opts = nil, &block)
  self.table = table
  @opts = opts
  @block = block if block_given?
end

Instance Attribute Details

#optsObject

Returns the value of attribute opts.



3
4
5
# File 'lib/pg_shrink/table_filter.rb', line 3

def opts
  @opts
end

#tableObject

Returns the value of attribute table.



3
4
5
# File 'lib/pg_shrink/table_filter.rb', line 3

def table
  @table
end