Class: Juggalo::Portlet
- Inherits:
-
Object
- Object
- Juggalo::Portlet
- Defined in:
- lib/juggalo/portlet.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(opts, loader) ⇒ Portlet
constructor
A new instance of Portlet.
- #present ⇒ Object
Constructor Details
#initialize(opts, loader) ⇒ Portlet
Returns a new instance of Portlet.
5 6 7 8 9 |
# File 'lib/juggalo/portlet.rb', line 5 def initialize(opts, loader) @opts = opts @loader = loader @location = opts["location"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/juggalo/portlet.rb', line 3 def id @id end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
3 4 5 |
# File 'lib/juggalo/portlet.rb', line 3 def location @location end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
3 4 5 |
# File 'lib/juggalo/portlet.rb', line 3 def opts @opts end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/juggalo/portlet.rb', line 3 def type @type end |
Instance Method Details
#present ⇒ Object
11 12 13 |
# File 'lib/juggalo/portlet.rb', line 11 def present @loader.load opts end |