Sha256: a310fe41b29031f2c8f2bf10c643a07479a6827aad798e179cd0ebcfb661b7fa
Contents?: true
Size: 613 Bytes
Versions: 17
Compression:
Stored size: 613 Bytes
Contents
module Exlibris::Primo # Class for handling Primo TOCs from links/linktotoc class Toc @base_attributes = [ :record_id, :linktotoc, :url, :display, :notes ] class << self; attr_reader :base_attributes end def initialize(options={}) base_attributes = (self.class.base_attributes.nil?) ? Exlibris::Primo::Toc.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
Version data entries
17 entries across 17 versions & 1 rubygems