Sha256: e47e49b2270d67b0cc994110c801b6990f19c5c1bb7c7c0fe2f04859e1e2f0d2

Contents?: true

Size: 371 Bytes

Versions: 5

Compression:

Stored size: 371 Bytes

Contents

module DPLibrary
  class CollectionItem
    attr_accessor :id,
                  :title,
                  :name

    def initialize(collection_hash)
      set_values(collection_hash)
    end

    def set_values(collection_hash)
      self.id = collection_hash['id']
      self.title = collection_hash['title']
      self.name = collection_hash['name']
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
DPLibrary-0.1.0 lib/DPLibrary/collection_item.rb
DPLibrary-0.0.6 lib/DPLibrary/collection_item.rb
DPLibrary-0.0.5 lib/DPLibrary/collection_item.rb
DPLibrary-0.0.4 lib/DPLibrary/collection_item.rb
DPLibrary-0.0.3 lib/DPLibrary/collection_item.rb