Sha256: 6373a0fad927af5dbad408d85a554524631720a5986e1c19524f95c44d0f838d

Contents?: true

Size: 237 Bytes

Versions: 9

Compression:

Stored size: 237 Bytes

Contents

module EenyMeeny
  class Variation
    attr_reader :id, :name, :weight, :options

    def initialize(id, name: '', weight: 1, **options)
      @id = id
      @name = name
      @weight = weight
      @options = options
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
eeny-meeny-2.3.0 lib/eeny-meeny/models/variation.rb
eeny-meeny-2.2.2 lib/eeny-meeny/models/variation.rb
eeny-meeny-2.2.1 lib/eeny-meeny/models/variation.rb
eeny-meeny-2.2.0 lib/eeny-meeny/models/variation.rb
eeny-meeny-2.1.4 lib/eeny-meeny/models/variation.rb
eeny-meeny-2.1.3 lib/eeny-meeny/models/variation.rb
eeny-meeny-2.1.2 lib/eeny-meeny/models/variation.rb
eeny-meeny-2.1.1 lib/eeny-meeny/models/variation.rb
eeny-meeny-2.1.0 lib/eeny-meeny/models/variation.rb