Class: RubyCurses::TableColumnModelEvent
- Inherits:
-
Object
- Object
- RubyCurses::TableColumnModelEvent
- Defined in:
- lib/rbcurse/extras/widgets/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
-
#from_col ⇒ Object
Returns the value of attribute from_col.
-
#source ⇒ Object
Returns the value of attribute source.
-
#to_col ⇒ Object
Returns the value of attribute to_col.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(from_col, to_col, source, type) ⇒ TableColumnModelEvent
constructor
A new instance of TableColumnModelEvent.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(from_col, to_col, source, type) ⇒ TableColumnModelEvent
Returns a new instance of TableColumnModelEvent.
1712 1713 1714 1715 1716 1717 |
# File 'lib/rbcurse/extras/widgets/rtable.rb', line 1712 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_col ⇒ Object
Returns the value of attribute from_col.
1711 1712 1713 |
# File 'lib/rbcurse/extras/widgets/rtable.rb', line 1711 def from_col @from_col end |
#source ⇒ Object
Returns the value of attribute source.
1711 1712 1713 |
# File 'lib/rbcurse/extras/widgets/rtable.rb', line 1711 def source @source end |
#to_col ⇒ Object
Returns the value of attribute to_col.
1711 1712 1713 |
# File 'lib/rbcurse/extras/widgets/rtable.rb', line 1711 def to_col @to_col end |
#type ⇒ Object
Returns the value of attribute type.
1711 1712 1713 |
# File 'lib/rbcurse/extras/widgets/rtable.rb', line 1711 def type @type end |
Instance Method Details
#inspect ⇒ Object
1721 1722 1723 |
# File 'lib/rbcurse/extras/widgets/rtable.rb', line 1721 def inspect to_s end |
#to_s ⇒ Object
1718 1719 1720 |
# File 'lib/rbcurse/extras/widgets/rtable.rb', line 1718 def to_s "#{@type.to_s}, from_col: #{@from_col}, to_col: #{@to_col}, source: #{@source}" end |