class DPLibrary::CollectionItem

Attributes

id[RW]
name[RW]
title[RW]

Public Class Methods

new(collection_hash) click to toggle source
# File lib/DPLibrary/collection_item.rb, line 7
def initialize(collection_hash)
  set_values(collection_hash)
end

Public Instance Methods

set_values(collection_hash) click to toggle source
# File lib/DPLibrary/collection_item.rb, line 11
def set_values(collection_hash)
  self.id = collection_hash['id']
  self.title = collection_hash['title']
  self.name = collection_hash['name']
end