Class: Runcible::Models::OstreeDistributor

Inherits:
Distributor
  • Object
show all
Defined in:
lib/runcible/models/ostree_distributor.rb

Instance Attribute Summary collapse

Attributes inherited from Distributor

#auto_publish, #id

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Distributor

#type_id

Constructor Details

#initialize(params = {}) ⇒ OstreeDistributor

Returns a new instance of OstreeDistributor.



9
10
11
# File 'lib/runcible/models/ostree_distributor.rb', line 9

def initialize(params = {})
  super(params)
end

Instance Attribute Details

#depthObject

Returns the value of attribute depth.



7
8
9
# File 'lib/runcible/models/ostree_distributor.rb', line 7

def depth
  @depth
end

#ostree_publish_directoryObject

Returns the value of attribute ostree_publish_directory.



7
8
9
# File 'lib/runcible/models/ostree_distributor.rb', line 7

def ostree_publish_directory
  @ostree_publish_directory
end

#relative_pathObject

Returns the value of attribute relative_path.



7
8
9
# File 'lib/runcible/models/ostree_distributor.rb', line 7

def relative_path
  @relative_path
end

Class Method Details

.type_idObject



13
14
15
# File 'lib/runcible/models/ostree_distributor.rb', line 13

def self.type_id
  'ostree_web_distributor'
end

Instance Method Details

#configObject



17
18
19
20
21
22
# File 'lib/runcible/models/ostree_distributor.rb', line 17

def config
  to_ret = as_json
  to_ret.delete('auto_publish')
  to_ret.delete('id')
  to_ret
end