Sha256: 750d113eb7fb5c69c0920fb9a87571cfc6ec4a1671c8d02791d4c0066470547f

Contents?: true

Size: 392 Bytes

Versions: 191

Compression:

Stored size: 392 Bytes

Contents

module Katello
  module Resources
    module Candlepin
      class CPUser < CandlepinResource
        class << self
          def create(attrs)
            JSON.parse(self.post(path, JSON.generate(attrs), self.default_headers).body).with_indifferent_access
          end

          def path(id = nil)
            "/candlepin/users/#{id}"
          end
        end
      end
    end
  end
end

Version data entries

191 entries across 191 versions & 1 rubygems

Version Path
katello-4.11.0.rc2 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.11.0.rc1 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.10.0 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.9.2 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.10.0.rc2 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.10.0.rc1 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.8.4 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.9.1 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.8.3 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.9.0 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.7.6 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.8.2 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.9.0.rc2 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.9.0.rc1 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.8.1 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.7.5 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.8.0 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.8.0.rc2 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.7.4 app/lib/katello/resources/candlepin/c_p_user.rb
katello-4.8.0.rc1 app/lib/katello/resources/candlepin/c_p_user.rb