Class: Pulp::Content

Inherits:
Pulp::Connection::Base show all
Defined in:
lib/pulp/content.rb

Class Method Summary collapse

Methods inherited from Pulp::Connection::Base

base, base_delete, base_get, base_post, base_put, base_unparsed_delete, base_unparsed_get, base_unparsed_post, base_unparsed_put, identifier, #initialize, merge_params, parse_item_cmd, plain_base, plain_get, plain_unparsed_get, reset, s, #set_fields

Methods included from Pulp::Common::Lifecycle

#fields, included, #locked_fields, #record_fields, #special_fields, #user_fields

Constructor Details

This class inherits a constructor from Pulp::Connection::Base

Class Method Details

.delete_file(fileid) ⇒ Object



8
9
10
# File 'lib/pulp/content.rb', line 8

def self.delete_file(fileid)
  base_delete('',"files/#{fileid}/")
end

.file(fileid) ⇒ Object



4
5
6
# File 'lib/pulp/content.rb', line 4

def self.file(fileid)
  base_get('','files/',{:id => fileid})
end