Class: Hobix::AkismetKey

Inherits:
BasePlugin show all
Defined in:
lib/hobix/plugin/akismet.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BasePlugin

inherited, start

Constructor Details

#initialize(weblog, params = {}) ⇒ AkismetKey

Returns a new instance of AkismetKey.



42
43
44
45
# File 'lib/hobix/plugin/akismet.rb', line 42

def initialize(weblog, params = {})
  raise %{The Akismet plugin is not configured, the API key is missing. See hobix/plugin/akismet.rb for details} unless params.member?("api-key")
  @@key = params["api-key"]
end

Class Method Details

.keyObject



47
# File 'lib/hobix/plugin/akismet.rb', line 47

def self.key; @@key; end