Sha256: 0a31b3d96c5af1ce0372394d049c719fb3da3e068a358881d0762c558941e338

Contents?: true

Size: 312 Bytes

Versions: 7

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

module Noticent
  module Definitions
    class Product
      attr_reader :name

      def initialize(config, name)
        raise BadConfiguration, 'product name should be a symbol' unless name.is_a? Symbol

        @config = config
        @name = name
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
noticent-0.0.6 lib/noticent/definitions/product.rb
noticent-0.0.5 lib/noticent/definitions/product.rb
noticent-0.0.4 lib/noticent/definitions/product.rb
noticent-0.0.3 lib/noticent/definitions/product.rb
noticent-0.0.2 lib/noticent/definitions/product.rb
noticent-0.0.1 lib/noticent/definitions/product.rb
noticent-0.0.1.pre.pre lib/noticent/definitions/product.rb