Class: Hindbaer::Plugin::Compressor

Inherits:
Base
  • Object
show all
Defined in:
lib/hindbaer/plugin/compressor.rb

Constant Summary

Constants inherited from Base

Base::ATTRIBUTES

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Hindbaer::Plugin::Base

Instance Attribute Details

#compObject

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