class Libis::Ingester::Organization
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/libis/ingester/organization.rb, line 28 def self.from_hash(hash) # noinspection RubyResolve self.create_from_hash(hash, [:name]) do |_, cfg| unless cfg['material_flow'].is_a?(Hash) cfg['material_flow'] = {'default' => cfg['material_flow']} end end end
Public Instance Methods
producer()
click to toggle source
# File lib/libis/ingester/organization.rb, line 37 def producer { id: self.producer_id, agent: self.producer_agent, password: self.producer_pwd, institution: self.code } end