Class: Juggalo::Portlet::Loader
- Inherits:
-
Object
- Object
- Juggalo::Portlet::Loader
- Defined in:
- lib/juggalo/portlet/loader.rb,
lib/juggalo/portlet/loader/http.rb
Defined Under Namespace
Classes: HTTP
Instance Attribute Summary collapse
-
#adapter ⇒ Object
readonly
Returns the value of attribute adapter.
Instance Method Summary collapse
-
#initialize(adapter) ⇒ Loader
constructor
A new instance of Loader.
- #load(opts) ⇒ Object
Constructor Details
#initialize(adapter) ⇒ Loader
Returns a new instance of Loader.
8 9 10 |
# File 'lib/juggalo/portlet/loader.rb', line 8 def initialize(adapter) @adapter = adapter end |
Instance Attribute Details
#adapter ⇒ Object (readonly)
Returns the value of attribute adapter.
6 7 8 |
# File 'lib/juggalo/portlet/loader.rb', line 6 def adapter @adapter end |
Instance Method Details
#load(opts) ⇒ Object
12 13 14 |
# File 'lib/juggalo/portlet/loader.rb', line 12 def load(opts) @adapter.get opts end |