Module: Zabby::ZClass
- Included in:
- APIInfo, Action, Alert, Application, Event, Graph, Graphitem, History, Host, Hostgroup, Image, Item, Maintenance, Map, Mediatype, Proxy, Screen, Script, Template, Trigger, User, Usergroup, Usermacro, Usermedia
- Defined in:
- lib/zabby/zclass.rb
Overview
Create Zabbix classes as provided by the Zabbix API
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
- .included(base) ⇒ Object
-
.zabbix_classes ⇒ Array
Return the list of Zabbix classes.
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_classes ⇒ Array
Return the list of Zabbix classes
20 21 22 |
# File 'lib/zabby/zclass.rb', line 20 def self.zabbix_classes @zabbix_classes end |