Class: Sistrix::Monitoring::Report::Recipient

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

Instance Method Summary collapse

Methods included from Record

#keys, #method_missing

Constructor Details

#initialize(xml_node) ⇒ Recipient

Returns a new instance of Recipient.



49
50
51
52
53
54
# File 'lib/sistrix/monitoring/report.rb', line 49

def initialize(xml_node)
  @data = {}

  @data[:value] = xml_node['value'].to_s.strip
  @data[:type] = xml_node['type'].to_s.strip
end

Dynamic Method Handling

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