Class: Openfire::SystemProperty

Inherits:
Object
  • Object
show all
Defined in:
lib/openfire/system_property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject

Returns the value of attribute key.



3
4
5
# File 'lib/openfire/system_property.rb', line 3

def key
  @key
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/openfire/system_property.rb', line 3

def value
  @value
end