class DPLibrary::OriginalRecord

Attributes

creator[RW]
date[RW]
description[RW]
id[RW]
label[RW]
language[RW]
publisher[RW]
source[RW]
subject[RW]
title[RW]
type[RW]
url[RW]

Public Class Methods

new(hash) click to toggle source
# File lib/DPLibrary/original_record.rb, line 16
def initialize(hash)
  set_values(hash)
end

Public Instance Methods

set_values(hash) click to toggle source
# File lib/DPLibrary/original_record.rb, line 20
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