Class: Soundcloud2000::Views::TracksTable

Inherits:
UI::Table show all
Defined in:
lib/soundcloud2000/views/tracks_table.rb

Constant Summary

Constants inherited from UI::Table

UI::Table::SEPARATOR

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

#rect

Instance Method Summary collapse

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