Class: Hobix::BloglinesPlugin

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

Overview

we just keep parameters from hobix.yaml here

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BasePlugin

inherited, start

Constructor Details

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

Returns a new instance of BloglinesPlugin.



38
39
40
41
42
43
44
# File 'lib/hobix/plugin/bloglines.rb', line 38

def initialize(weblog, params = {})
  raise %{the bloglines plugin needs a "userid" parameter. see hobix/plugin/bloglines.rb for details} unless params.member? "userid"
  @@userid = params["userid"]
  @@folder = params["folder"]
  @@title = params["title"] || "Blogroll"
  @@in_sidebarBox_div = lambda { |x| (x.nil? ? true : x) }[params["in-sidebarBox-div"]]
end

Class Method Details

.folderObject



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

def self.folder; @@folder; end

.in_sidebarBox_div?Boolean

Returns:

  • (Boolean)


49
# File 'lib/hobix/plugin/bloglines.rb', line 49

def self.in_sidebarBox_div?; @@in_sidebarBox_div; end

.titleObject



48
# File 'lib/hobix/plugin/bloglines.rb', line 48

def self.title; @@title; end

.useridObject



46
# File 'lib/hobix/plugin/bloglines.rb', line 46

def self.userid; @@userid; end