Method: Twterm::Tab::Statuses::Search#initialize

Defined in:
lib/twterm/tab/statuses/search.rb

#initialize(app, client, query) ⇒ Search

Returns a new instance of Search.



28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/twterm/tab/statuses/search.rb', line 28

def initialize(app, client, query)
  super(app, client)

  @query = query
  @title = "\"#{@query}\""

  reload.then do
    initially_loaded!
    scroller.move_to_top
  end

  @auto_reloader = Scheduler.new(300) { reload }
end