Class: Runcible::Models::ExportDistributor
- Inherits:
-
Distributor
- Object
- Distributor
- Runcible::Models::ExportDistributor
- Defined in:
- lib/runcible/models/export_distributor.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
required attributes.
-
#https ⇒ Object
required attributes.
-
#relative_url ⇒ Object
required attributes.
Attributes inherited from Distributor
Class Method Summary collapse
-
.type_id ⇒ string
Distributor Type id.
Instance Method Summary collapse
-
#config ⇒ Hash
generate the pulp config for the export distributor.
-
#initialize(http, https, relative_url = nil) ⇒ Runcible::Extensions::ExportDistributor
constructor
Instantiates a export distributor.
Methods inherited from Distributor
Constructor Details
#initialize(http, https, relative_url = nil) ⇒ Runcible::Extensions::ExportDistributor
Instantiates a export distributor
16 17 18 19 20 21 22 |
# File 'lib/runcible/models/export_distributor.rb', line 16 def initialize(http, https, relative_url = nil) @http = http @https = https @relative_url = relative_url # Pulp seems to expect the ID to be export_distributor, not a random super({:id => type_id}) end |
Instance Attribute Details
#http ⇒ Object
required attributes
8 9 10 |
# File 'lib/runcible/models/export_distributor.rb', line 8 def http @http end |
#https ⇒ Object
required attributes
8 9 10 |
# File 'lib/runcible/models/export_distributor.rb', line 8 def https @https end |
#relative_url ⇒ Object
required attributes
8 9 10 |
# File 'lib/runcible/models/export_distributor.rb', line 8 def relative_url @relative_url end |
Class Method Details
.type_id ⇒ string
Distributor Type id
27 28 29 |
# File 'lib/runcible/models/export_distributor.rb', line 27 def self.type_id 'export_distributor' end |
Instance Method Details
#config ⇒ Hash
generate the pulp config for the export distributor
34 35 36 37 38 39 |
# File 'lib/runcible/models/export_distributor.rb', line 34 def config to_ret = as_json to_ret.delete('auto_publish') to_ret.delete('id') to_ret end |