Class: Hobix::AkismetKey
- Inherits:
-
BasePlugin
- Object
- BasePlugin
- Hobix::AkismetKey
- Defined in:
- lib/hobix/plugin/akismet.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(weblog, params = {}) ⇒ AkismetKey
constructor
A new instance of AkismetKey.
Methods inherited from BasePlugin
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
.key ⇒ Object
47 |
# File 'lib/hobix/plugin/akismet.rb', line 47 def self.key; @@key; end |