Class: Juggalo::Portlet::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/juggalo/portlet/loader.rb,
lib/juggalo/portlet/loader/http.rb

Defined Under Namespace

Classes: HTTP

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#adapterObject (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