Module: Zabby::ZClass

Overview

Create Zabbix classes as provided by the Zabbix API

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



12
13
14
15
16
# File 'lib/zabby/zclass.rb', line 12

def self.included(base)
  base.extend(ClassMethods)
  # Keep a list of Zabbix classes
  @zabbix_classes << base.name.gsub(/^.*::/, '')
end

.zabbix_classesArray

Return the list of Zabbix classes

Returns:

  • (Array)

    List of Zabbix classes



20
21
22
# File 'lib/zabby/zclass.rb', line 20

def self.zabbix_classes
  @zabbix_classes
end