Class: Katello::Resources::Candlepin::OwnerInfo
- Inherits:
-
CandlepinResource
- Object
- HttpResource
- CandlepinResource
- Katello::Resources::Candlepin::OwnerInfo
- Defined in:
- app/lib/katello/resources/candlepin.rb
Instance Attribute Summary
Attributes inherited from HttpResource
Class Method Summary collapse
Methods inherited from CandlepinResource
default_headers, logger, name_to_key
Methods inherited from HttpResource
#[], #[]=, create_thing, delete, get, hash_to_query, #initialize, join_path, logger, post, print_debug_info, process_response, put, raise_rest_client_exception, rest_client, url_encode
Constructor Details
This class inherits a constructor from Katello::HttpResource
Class Method Details
.find(key) ⇒ Object
312 313 314 315 |
# File 'app/lib/katello/resources/candlepin.rb', line 312 def find(key) owner_json = self.get(path(key), {'accept' => 'application/json'}.merge(User.cp_oauth_header)).body JSON.parse(owner_json).with_indifferent_access end |
.path(id = nil) ⇒ Object
317 318 319 |
# File 'app/lib/katello/resources/candlepin.rb', line 317 def path(id = nil) "/candlepin/owners/#{id}/info" end |