Sha256: 712327d41e410367daa053060c182838c82771296d86c670418f51414ae664e6

Contents?: true

Size: 422 Bytes

Versions: 196

Compression:

Stored size: 422 Bytes

Contents

module Katello
  module Resources
    module Candlepin
      class UpstreamEntitlement < UpstreamCandlepinResource
        class << self
          def path(id = nil)
            "#{self.prefix}/entitlements/#{id}"
          end

          def update(entitlement_id, quantity)
            body = {quantity: quantity}.to_json

            self[entitlement_id].put(body)
          end
        end
      end
    end
  end
end

Version data entries

196 entries across 196 versions & 1 rubygems

Version Path
katello-4.16.0 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.15.1 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.16.0.rc2 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.16.0.rc1 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.14.3 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.14.2 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.15.0 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.15.0.rc2 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.15.0.rc1 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.14.1 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.14.0 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.14.0.rc3 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.14.0.rc2 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.14.0.rc1.1 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.14.0.rc1 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.13.1 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.13.0 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.12.1 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.13.0.rc1 app/lib/katello/resources/candlepin/upstream_entitlement.rb
katello-4.12.0 app/lib/katello/resources/candlepin/upstream_entitlement.rb