Class: Twterm::Tab::ListTab
- Inherits:
-
Object
- Object
- Twterm::Tab::ListTab
- Includes:
- StatusesTab
- Defined in:
- lib/twterm/tab/list_tab.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Attributes included from Base
Instance Method Summary collapse
- #==(other) ⇒ Object
- #fetch ⇒ Object
-
#initialize(list) ⇒ ListTab
constructor
A new instance of ListTab.
Methods included from StatusesTab
#append, #delete_status, #favorite, #open_link, #prepend, #reply, #respond_to_key, #retweet, #show_conversation, #show_user, #update
Methods included from AutoReloadable
Methods included from Scrollable
#count, #draw_scroll_bar, #index, #item_appended, #item_prepended, #last, #move_down, #move_to_bottom, #move_to_top, #move_up, #offset, #offset_from_bottom, #respond_to_key, #update_scrollbar_length
Methods included from Base
#close, #refresh, #respond_to_key
Constructor Details
#initialize(list) ⇒ ListTab
Returns a new instance of ListTab.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/twterm/tab/list_tab.rb', line 8 def initialize(list) fail ArgumentError, 'argument must be an instance of List class' unless list.is_a? List super() @list = list @title = @list.full_name fetch { move_to_top } auto_reload(300) { fetch } end |
Instance Attribute Details
#list ⇒ Object (readonly)
Returns the value of attribute list.
6 7 8 |
# File 'lib/twterm/tab/list_tab.rb', line 6 def list @list end |
Instance Method Details
#==(other) ⇒ Object
28 29 30 |
# File 'lib/twterm/tab/list_tab.rb', line 28 def ==(other) other.is_a?(self.class) && list == other.list end |