Class: Skala::AlephAdapter::GetRecordHoldableItems

Inherits:
Skala::Adapter::GetRecordHoldableItems show all
Defined in:
lib/skala/aleph_adapter/get_record_holdable_items.rb

Instance Attribute Summary

Attributes inherited from Skala::Adapter::Operation

#adapter

Instance Method Summary collapse

Methods inherited from Skala::Adapter::Operation

#initialize

Constructor Details

This class inherits a constructor from Skala::Adapter::Operation

Instance Method Details

#call(document_number, username, options = {}) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/skala/aleph_adapter/get_record_holdable_items.rb', line 7

def call(document_number, username, options = {})
  get_record_items_result = get_record_items(document_number, options.merge(username: username))

  self.class::Result.new(
    holdable_items: holdable_items(get_record_items_result),
    source: get_record_items_result.source
  )
end