Class: ErrorReport
- Inherits:
-
Object
- Object
- ErrorReport
- Defined in:
- lib/mundipagg/ErrorReport.rb
Instance Attribute Summary collapse
-
#Category ⇒ Object
Returns the value of attribute Category.
-
#ErrorItemCollection ⇒ Object
Returns the value of attribute ErrorItemCollection.
Instance Method Summary collapse
-
#initialize ⇒ ErrorReport
constructor
A new instance of ErrorReport.
- #to_json ⇒ Object
Constructor Details
#initialize ⇒ ErrorReport
Returns a new instance of ErrorReport.
8 9 10 |
# File 'lib/mundipagg/ErrorReport.rb', line 8 def initialize @ErrorItemCollection = Array.new; end |
Instance Attribute Details
#Category ⇒ Object
Returns the value of attribute Category.
3 4 5 |
# File 'lib/mundipagg/ErrorReport.rb', line 3 def Category @Category end |
#ErrorItemCollection ⇒ Object
Returns the value of attribute ErrorItemCollection.
5 6 7 |
# File 'lib/mundipagg/ErrorReport.rb', line 5 def ErrorItemCollection @ErrorItemCollection end |
Instance Method Details
#to_json ⇒ Object
12 13 14 15 16 |
# File 'lib/mundipagg/ErrorReport.rb', line 12 def to_json hash = {} instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) } hash end |