class Libis::Ingester::Manifestation
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/libis/ingester/manifestation.rb, line 24 def self.from_hash(hash) # noinspection RubyResolve self.create_from_hash(hash, [:name]) do |item, cfg| item.access_right = Libis::Ingester::AccessRight.from_hash(name: cfg.delete('access_right')) item.representation_info = Libis::Ingester::RepresentationInfo.from_hash(name: cfg.delete('representation')) item.convert_infos.clear (cfg.delete('convert') || []).each do |cv_cfg| item.convert_infos << Libis::Ingester::ConvertInfo.from_hash(cv_cfg) end end end