Class: Soundcloud2000::Views::TracksTable
- Defined in:
- lib/soundcloud2000/views/tracks_table.rb
Constant Summary
Constants inherited from UI::Table
Constants inherited from UI::View
UI::View::INTERSECTION, UI::View::LINE_SEPARATOR, UI::View::ROW_SEPARATOR
Instance Attribute Summary
Attributes inherited from UI::Table
#collection, #current, #header, #keys
Attributes inherited from UI::View
Instance Method Summary collapse
-
#initialize(*args) ⇒ TracksTable
constructor
A new instance of TracksTable.
Methods inherited from UI::Table
#bind_to, #body_height, #bottom?, #deselect, #down, #length, #select, #up
Methods inherited from UI::View
#body_width, #clear, #padding, #render, #with_color
Constructor Details
#initialize(*args) ⇒ TracksTable
Returns a new instance of TracksTable.
6 7 8 9 10 |
# File 'lib/soundcloud2000/views/tracks_table.rb', line 6 def initialize(*args) super self.header = ['Title', 'User', 'Length', 'Plays', 'Likes', 'Comments'] self.keys = [:title, :username, :length, :plays, :likes, :comments] end |