Sha256: 36ddddafea375a6b63f56a9fcd2cfeeef972685a316e0fd90d8b8a891bd5b7b0

Contents?: true

Size: 287 Bytes

Versions: 13

Compression:

Stored size: 287 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

13 entries across 13 versions & 1 rubygems

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