Sha256: 17fc8d9c37e372c01ea1dfb3b951eb6911bf26707f7dc8b1495f7b898fa10e7d

Contents?: true

Size: 240 Bytes

Versions: 2

Compression:

Stored size: 240 Bytes

Contents

module Haversack
  class Item
    attr_accessor :weight
    attr_accessor :size
    attr_accessor :data
    
    def initialize(weight:, size: 1, data: nil)
      @weight = weight
      @size   = size
      @data   = data
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
haversack-0.2.0 lib/haversack/item.rb
haversack-0.1.0 lib/haversack/item.rb