10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/learnable-notifier.rb', line 10
def initialize(, api_key, options = {})
self. =
self.options = {
:application => 'Learnable forum',
:storage => File.join(ENV['HOME'], '.learnable-notifier')
}.merge(options)
Prowler.configure do |config|
config.api_key = api_key
config.application = self.options[:application]
end
self.sent = { self. => [] }
if (File.exists?(self.options[:storage]) && yaml = YAML.load_file(self.options[:storage]))
self.sent = yaml
end
end
|