Sha256: 64d225d2cb5da32106683af72340c405ed10508db58d02118db6b931f827ee09

Contents?: true

Size: 1.79 KB

Versions: 13

Compression:

Stored size: 1.79 KB

Contents

#############################################################################
# Copyright © 2010 Dan Wanek <dwanek@nd.gov>
#
#
# This file is part of zenoss_client.
# 
# zenoss_client 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_client 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_client.  If not, see <http://www.gnu.org/licenses/>.
#############################################################################

# This file contains helper modules for minor classes that have to deal
# with Devices and DeviceClasses.

module Zenoss
  module Model

    module DeviceResultInt

      # Return the path of the device_class; everything after '/zport/dmd/Devices'
      def get_device_class_name
        @cache_vars[:device_class_name] ||= rest('getDeviceClassName')
      end

      # Return the path of the device_class; everything after '/zport/dmd/Devices'
      def get_device_class_path
        get_device_class_name
      end

      # Return the DeviceClass object of this object
      def device_class
        @cache_vars[:device_class] ||= DeviceClass.new(get_device_class_name)
      end
    end # DeviceResultInt

  end # Model
end # Zenoss


# Load the main Device related files
require 'zenoss/model/devices/device_class'
require 'zenoss/model/devices/device'
require 'zenoss/model/devices/device_hw'
require 'zenoss/model/devices/operating_system'

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
zenoss_client-0.10.1 lib/zenoss/model/devices.rb
zenoss_client-0.10.0 lib/zenoss/model/devices.rb
zenoss_client-0.9.1 lib/zenoss/model/devices.rb
zenoss_client-0.9.0 lib/zenoss/model/devices.rb
zenoss_client-0.8.0 lib/zenoss/model/devices.rb
zenoss_client-0.7.0 lib/zenoss/model/devices.rb
zenoss_client-0.6.1 lib/zenoss/model/devices.rb
zenoss_client-0.6.0 lib/zenoss/model/devices.rb
zenoss_client-0.5.4 lib/zenoss/model/devices.rb
zenoss_client-0.5.3 lib/zenoss/model/devices.rb
zenoss_client-0.5.2 lib/zenoss/model/devices.rb
zenoss_client-0.5.1 lib/zenoss/model/devices.rb
zenoss_client-0.5.0 lib/zenoss/model/devices.rb