Class: RubyCurses::TableColumnModelEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/rbcurse/rtable.rb

Overview

event sent when a column is added, removed or moved type :INSERT :DELETE :MOVE in the case of add query first col, for removed query second

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from_col, to_col, source, type) ⇒ TableColumnModelEvent

Returns a new instance of TableColumnModelEvent.



1674
1675
1676
1677
1678
1679
# File 'lib/rbcurse/rtable.rb', line 1674

def initialize from_col, to_col, source, type
  @from_col = from_col
  @to_col = to_col
  @source = source
  @type = type
end

Instance Attribute Details

#from_colObject

Returns the value of attribute from_col.



1673
1674
1675
# File 'lib/rbcurse/rtable.rb', line 1673

def from_col
  @from_col
end

#sourceObject

Returns the value of attribute source.



1673
1674
1675
# File 'lib/rbcurse/rtable.rb', line 1673

def source
  @source
end

#to_colObject

Returns the value of attribute to_col.



1673
1674
1675
# File 'lib/rbcurse/rtable.rb', line 1673

def to_col
  @to_col
end

#typeObject

Returns the value of attribute type.



1673
1674
1675
# File 'lib/rbcurse/rtable.rb', line 1673

def type
  @type
end

Instance Method Details

#inspectObject



1683
1684
1685
# File 'lib/rbcurse/rtable.rb', line 1683

def inspect
  to_s
end

#to_sObject



1680
1681
1682
# File 'lib/rbcurse/rtable.rb', line 1680

def to_s
  "#{@type.to_s}, from_col: #{@from_col}, to_col: #{@to_col}, source: #{@source}"
end