Class: Runcible::Models::GroupExportDistributor
- Inherits:
-
Distributor
- Object
- Distributor
- Runcible::Models::GroupExportDistributor
- Defined in:
- lib/runcible/models/group_export_distributor.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
required attributes.
-
#https ⇒ 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 = false, https = false, params = {}) ⇒ Runcible::Extensions::GroupExportDistributor
constructor
Instantiates a group export distributor.
Methods inherited from Distributor
Constructor Details
#initialize(http = false, https = false, params = {}) ⇒ Runcible::Extensions::GroupExportDistributor
Instantiates a group export distributor.
16 17 18 19 20 21 22 23 24 |
# File 'lib/runcible/models/group_export_distributor.rb', line 16 def initialize(http = false, https = false, params = {}) @http = http @https = https # these two fields are helpful when instantiating a group export # distributor via group creation. It saves a few pulp API calls. @distributor_type_id = type_id @distributor_config = {:http => http, :https => https} super(params) end |
Instance Attribute Details
#http ⇒ Object
required attributes
8 9 10 |
# File 'lib/runcible/models/group_export_distributor.rb', line 8 def http @http end |
#https ⇒ Object
required attributes
8 9 10 |
# File 'lib/runcible/models/group_export_distributor.rb', line 8 def https @https end |
Class Method Details
.type_id ⇒ string
Distributor Type id
29 30 31 |
# File 'lib/runcible/models/group_export_distributor.rb', line 29 def self.type_id 'group_export_distributor' end |
Instance Method Details
#config ⇒ Hash
generate the pulp config for the export distributor
36 37 38 39 40 41 |
# File 'lib/runcible/models/group_export_distributor.rb', line 36 def config to_ret = as_json to_ret.delete('auto_publish') to_ret.delete('id') to_ret end |