Class: Collectd::Plugin

Inherits:
Object
  • Object
show all
Includes:
EmPlugin, ProcStats
Defined in:
lib/collectd/interface.rb

Overview

Interface helper

Instance Method Summary collapse

Methods included from EmPlugin

#push_deferrable_values, #track_deferrable

Methods included from ProcStats

#process_status, #with_full_proc_stats, #with_polled_cpu, #with_polled_memory

Constructor Details

#initialize(plugin, plugin_instance) ⇒ Plugin

Returns a new instance of Plugin.



60
61
62
# File 'lib/collectd/interface.rb', line 60

def initialize(plugin, plugin_instance)
  @plugin, @plugin_instance = plugin, plugin_instance
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(type, type_instance) ⇒ Object



63
64
65
# File 'lib/collectd/interface.rb', line 63

def method_missing(type, type_instance)
  Type.new(@plugin, @plugin_instance, type, type_instance)
end