Sha256: db2668afa5f2ee7dd7a1d742611a97e699b2924dd641a03b5f8696eb7d456850
Contents?: true
Size: 894 Bytes
Versions: 7
Compression:
Stored size: 894 Bytes
Contents
module DPLibrary class OriginalRecord attr_accessor :id, :title, :url, :description, :source, :subject, :date, :label, :language, :type, :creator, :publisher def initialize(hash) set_values(hash) end def set_values(hash) self.id = hash['id'] self.title = hash['title'] self.url = hash['handle'] self.source = hash['contributor'] self.description = hash['description'] self.subject = hash['subject'] self.date = hash['datestamp'] self.label = hash['label'] self.language = hash['language'] self.type = hash['type'] self.creator = hash['creator'] self.publisher = hash['publisher'] end end end
Version data entries
7 entries across 7 versions & 1 rubygems