Sha256: 957b29ce0b9c9ac6737e5dc631c92b3247a1ebc61eae4f3105eb2d8886f7870f

Contents?: true

Size: 280 Bytes

Versions: 13

Compression:

Stored size: 280 Bytes

Contents

module Katello
  class PoolWithQuantities
    attr_accessor :pool, :quantities

    def initialize(pool = nil, quantities = [])
      @pool = pool
      @quantities = quantities
      @quantities = [@quantities] if !@quantities.nil? && !@quantities.is_a?(Array)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
katello-3.1.0.1 app/models/katello/pool_with_quantities.rb
katello-3.1.0 app/models/katello/pool_with_quantities.rb
katello-3.1.0.rc2.1 app/models/katello/pool_with_quantities.rb
katello-3.0.2 app/models/katello/pool_with_quantities.rb
katello-3.1.0.rc1 app/models/katello/pool_with_quantities.rb
katello-3.0.1 app/models/katello/pool_with_quantities.rb
katello-3.0.0 app/models/katello/pool_with_quantities.rb
katello-3.0.0.rc7 app/models/katello/pool_with_quantities.rb
katello-3.0.0.rc5 app/models/katello/pool_with_quantities.rb
katello-3.0.0.rc4 app/models/katello/pool_with_quantities.rb
katello-3.0.0.rc3 app/models/katello/pool_with_quantities.rb
katello-3.0.0.rc2 app/models/katello/pool_with_quantities.rb
katello-3.0.0.rc1 app/models/katello/pool_with_quantities.rb