Class: Hindbaer::Plugin::Compressor
- Defined in:
- lib/hindbaer/plugin/compressor.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#comp ⇒ Object
Returns the value of attribute comp.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Hindbaer::Plugin::Base
Instance Attribute Details
#comp ⇒ Object
Returns the value of attribute comp.
5 6 7 |
# File 'lib/hindbaer/plugin/compressor.rb', line 5 def comp @comp end |
Class Method Details
.parse(fragment) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/hindbaer/plugin/compressor.rb', line 7 def self.parse(fragment) plugin = super(fragment) plugin.comp = fragment['Comp'] plugin end |
Instance Method Details
#to_xml(xml) ⇒ Object
15 16 17 |
# File 'lib/hindbaer/plugin/compressor.rb', line 15 def to_xml(xml) xml.Plugin Id: id, Name: name, UID: uid, Bypass: bypass, Comp: comp end |