Sha256: 4fc7c6d3fd96ba01754896f3246637471c975d39bff9516222efc46282be3e61

Contents?: true

Size: 279 Bytes

Versions: 171

Compression:

Stored size: 279 Bytes

Contents

module Katello
  class ActivationKeySubscriptionsPresenter < SimpleDelegator
    attr_reader :quantity_attached

    def initialize(pool, key_pools)
      @quantity_attached = key_pools.find { |sub| sub['id'] == pool.cp_id }.try(:[], :amount)
      super(pool)
    end
  end
end

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
katello-4.16.0 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.15.1 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.16.0.rc2 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.16.0.rc1 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.14.3 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.14.2 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.15.0 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.15.0.rc2 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.15.0.rc1 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.14.1 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.14.0 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.14.0.rc3 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.14.0.rc2 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.14.0.rc1.1 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.14.0.rc1 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.13.1 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.13.0 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.12.1 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.13.0.rc1 app/presenters/katello/activation_key_subscriptions_presenter.rb
katello-4.12.0 app/presenters/katello/activation_key_subscriptions_presenter.rb