Class: SlackScratcher::Loader::Api

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/slack_scratcher/loader/api.rb

Constant Summary collapse

WAIT_TIME =
15

Instance Method Summary collapse

Instance Method Details

#each(adapter) ⇒ Object


14
15
16
17
18
19
20
21
# File 'lib/slack_scratcher/loader/api.rb', line 14

def each(adapter)
  active_channels do |channel|
    wait
    from = adapter.time_of_channel_last_log(channel.name)
    to = 'now'
    yield channel_history(channel, from, to)
  end
end

#initalizeObject


10
11
12
# File 'lib/slack_scratcher/loader/api.rb', line 10

def initalize
  
end