Sha256: 7759d07d66aa9dff738ff34d894531edf13af2f363e5b25dfbae553f6066cf38

Contents?: true

Size: 286 Bytes

Versions: 7

Compression:

Stored size: 286 Bytes

Contents

module Katello
  class ActivationKeySubscriptionPresenter
    attr_accessor :subscription

    def initialize(subscription)
      @subscription = Katello::Pool.find_by_cp_id(subscription["id"])
      @subscription["quantity_attached"] = subscription.try(:[], :amount)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
katello-2.4.5 app/presenters/katello/activation_key_subscription_presenter.rb
katello-2.4.4 app/presenters/katello/activation_key_subscription_presenter.rb
katello-2.4.3 app/presenters/katello/activation_key_subscription_presenter.rb
katello-2.4.2 app/presenters/katello/activation_key_subscription_presenter.rb
katello-2.4.1 app/presenters/katello/activation_key_subscription_presenter.rb
katello-2.4.0 app/presenters/katello/activation_key_subscription_presenter.rb
katello-2.4.0.rc3 app/presenters/katello/activation_key_subscription_presenter.rb