Class: Sistrix::Monitoring::Reports::Record

Inherits:
Object
  • Object
show all
Includes:
Record
Defined in:
lib/sistrix/monitoring/reports.rb

Instance Method Summary collapse

Methods included from Record

#keys, #method_missing

Constructor Details

#initialize(xml_node) ⇒ Record

Returns a new instance of Record.



39
40
41
42
43
44
# File 'lib/sistrix/monitoring/reports.rb', line 39

def initialize(xml_node)
  @data = {}

  @data[:name] = xml_node['name'].to_s.strip
  @data[:id] = xml_node['id'].to_s.strip
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sistrix::Record