Sha256: 6dbf1b2d17b8f95268cbaacf79a15cb434e282ac1b60a0e5b7d73d7e6f5eb1c6

Contents?: true

Size: 308 Bytes

Versions: 3

Compression:

Stored size: 308 Bytes

Contents

module Bukin
  class Resource
    attr_reader :type, :name, :version, :download

    def initialize(data, version, download)
      @type = data[:type]
      @name = data[:name]
      @version = version
      @download = download
      @data = data
    end

    def [](key)
      @data[key]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bukin-0.9.0 lib/bukin/resource.rb
bukin-0.8.0 lib/bukin/resource.rb
bukin-0.7.0 lib/bukin/resource.rb