Class: Skala::PrimoAdapter::SoapApi

Inherits:
Object
  • Object
show all
Defined in:
lib/skala/primo_adapter/soap_api.rb

Defined Under Namespace

Classes: SearchBrief

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(adapter) ⇒ SoapApi

Returns a new instance of SoapApi.



8
9
10
# File 'lib/skala/primo_adapter/soap_api.rb', line 8

def initialize(adapter)
  self.adapter = adapter
end

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



6
7
8
# File 'lib/skala/primo_adapter/soap_api.rb', line 6

def adapter
  @adapter
end

Instance Method Details

#searchBrief(*args) ⇒ Object



12
13
14
# File 'lib/skala/primo_adapter/soap_api.rb', line 12

def searchBrief(*args)
  self.class::SearchBrief.new(adapter).call(*args)
end