Module: javaxjavax::managementjavax::management::openmbean::CompositeData

Includes:
Enumerable
Defined in:
lib/jmx/composite_data.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



10
11
12
# File 'lib/jmx/composite_data.rb', line 10

def method_missing(name, *args)
  self[name]
end

Instance Method Details

#[](key) ⇒ Object



6
7
8
# File 'lib/jmx/composite_data.rb', line 6

def [](key)
  get(key.to_s)
end

#eachObject



14
15
16
# File 'lib/jmx/composite_data.rb', line 14

def each
  get_composite_type.key_set.each { |key| yield key }
end

#each_pairObject



18
19
20
# File 'lib/jmx/composite_data.rb', line 18

def each_pair
  get_composite_type.key_set.each { |key| yield key, get(key) }
end