############################################################################# # Copyright © 2009 Dan Wanek <dwanek@nd.gov> # # # This file is part of Zenoss-RubyREST. # # Zenoss-RubyREST 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. # # Zenoss-RubyREST 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 Zenoss-RubyREST. If not, see <http://www.gnu.org/licenses/>. ############################################################################# module Zenoss module Model class DeviceHW include Zenoss include Zenoss::Model @@zenoss_methods = [] def initialize(device) @device = device end private def rest(method) super("#{@device.path}/#{@device.device}/hw/#{method}") end end # Device end # Model end # Zenoss