Sha256: 556ba255e3ba46b07da6bc755da135c0ab442bdf2699f3d146024fc8658f59b9
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
require_relative "../aleph_adapter" module Skala class AlephAdapter::GetRecord def initialize(adapter) @adapter = adapter end def call(record_id) get_record = @adapter.restful_api.record(record_id).get(view: :full) { "_type" => "record", "_id" => record_id, "fields" => { "record" => "#{get_record[/<?.*?>/]}#{WeakXml.find("<record>", get_record).to_s}" }, "_source" => get_record } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skala-1.1.0 | lib/skala/aleph_adapter/get_record.rb |