Class: ImageBuilder::PostProcessors::Compress
- Defined in:
- lib/image_builder/post_processors/compress.rb
Overview
Generic class doc comment
Constant Summary
Constants included from ImageBuilder
Instance Attribute Summary collapse
-
#output ⇒ Object
Returns the value of attribute output.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize ⇒ Compress
constructor
A new instance of Compress.
- #packer_hash ⇒ Object
Constructor Details
#initialize ⇒ Compress
Returns a new instance of Compress.
10 11 12 |
# File 'lib/image_builder/post_processors/compress.rb', line 10 def initialize @type = 'compress' end |
Instance Attribute Details
#output ⇒ Object
Returns the value of attribute output.
7 8 9 |
# File 'lib/image_builder/post_processors/compress.rb', line 7 def output @output end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/image_builder/post_processors/compress.rb', line 8 def type @type end |
Instance Method Details
#packer_hash ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/image_builder/post_processors/compress.rb', line 14 def packer_hash hash = {} attr_to_hash(hash, :type, true) attr_to_hash(hash, :output, true) hash end |