Sha256: 33341b5000c43750ed0ae70912e2630bb74f4b9cab68757ab880daf4241f27f7
Contents?: true
Size: 322 Bytes
Versions: 138
Compression:
Stored size: 322 Bytes
Contents
module Katello class HostSubscriptionPresenter < SimpleDelegator attr_accessor :quantity_consumed def initialize(entitlement) @subscription = Katello::Pool.find_by(:cp_id => entitlement['pool']['id']) @quantity_consumed = entitlement.try(:[], :quantity) super(@subscription) end end end
Version data entries
138 entries across 138 versions & 1 rubygems