Class: Sistrix::Monitoring::Report::Download::Error
- Inherits:
-
Object
- Object
- Sistrix::Monitoring::Report::Download::Error
- Defined in:
- lib/sistrix/monitoring/report/download.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(xml_node) ⇒ Error
constructor
A new instance of Error.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
49 50 51 |
# File 'lib/sistrix/monitoring/report/download.rb', line 49 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
49 50 51 |
# File 'lib/sistrix/monitoring/report/download.rb', line 49 def @message end |