Class: Openfire::SystemProperty
- Inherits:
-
Object
- Object
- Openfire::SystemProperty
- Defined in:
- lib/openfire/system_property.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SystemProperty
constructor
A new instance of SystemProperty.
Constructor Details
#initialize(attributes = {}) ⇒ SystemProperty
Returns a new instance of SystemProperty.
5 6 7 8 9 |
# File 'lib/openfire/system_property.rb', line 5 def initialize(attributes={}) attributes.each do |k,v| self.send("#{to_underscore(k).gsub('@','')}=", v) end end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/openfire/system_property.rb', line 3 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/openfire/system_property.rb', line 3 def value @value end |