Sha256: ba79f92eef90115d48ef9651547c61c0b9525569a42e71225a4e3aeb9cc1303c
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 Bytes
Contents
module Exlibris module Primo # == Overview # Class for handling Primo related links from links/addlink class RelatedLink @base_attributes = [ :record_id, :addlink, :url, :display, :notes ] class << self; attr_reader :base_attributes end def initialize(options={}) base_attributes = (self.class.base_attributes.nil?) ? Exlibris::Primo::RelatedLink.base_attributes : self.class.base_attributes base_attributes.each { |attribute| self.class.send(:attr_reader, attribute) } options.each { |option, value| self.instance_variable_set(('@'+option.to_s).to_sym, value) } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems