Module: PostRemoteLog
- Defined in:
- lib/post_remote_log/version.rb,
lib/post_remote_log/xml.rb,
lib/post_remote_log/server.rb,
lib/post_remote_log/methods.rb,
lib/post_remote_log/simple_xml.rb,
lib/post_remote_log/methods/email.rb,
lib/post_remote_log/methods/growl.rb,
lib/post_remote_log/methods/xmlrpc.rb
Overview
Copyright © 2009 Samuel Williams. Released under the GNU GPLv3.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.
Defined Under Namespace
Modules: Methods, VERSION Classes: Server, SimpleXMLBuilder
Class Method Summary collapse
-
.build_xml_message(values) ⇒ Object
Builds an XML formatted message from the supplied values.
Class Method Details
.build_xml_message(values) ⇒ Object
Builds an XML formatted message from the supplied values
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/post_remote_log/xml.rb', line 21 def self. (values) = SimpleXMLBuilder.new .instruct! .tag("remote_log") do [:classification, :uptime, :system, :hostname, :address, :report].each do |key| .value key.to_s, values[key] end end return end |