Class: Sistrix::Monitoring::Report::Download::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml_node) ⇒ Error

Returns a new instance of Error.



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

def initialize(xml_node)
  @code = xml_node['error_code'].to_s.strip
  @message = xml_node['error_message'].to_s.strip
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



49
50
51
# File 'lib/sistrix/monitoring/report/download.rb', line 49

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



49
50
51
# File 'lib/sistrix/monitoring/report/download.rb', line 49

def message
  @message
end