Class: Crashdesk::Reporters::Test
- Inherits:
-
Object
- Object
- Crashdesk::Reporters::Test
- Defined in:
- lib/crashdesk/reporters/test.rb
Instance Attribute Summary collapse
-
#crashlog ⇒ Object
readonly
Returns the value of attribute crashlog.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params = nil) ⇒ Test
constructor
A new instance of Test.
- #run(crashlog) ⇒ Object
Constructor Details
#initialize(params = nil) ⇒ Test
Returns a new instance of Test.
7 8 9 |
# File 'lib/crashdesk/reporters/test.rb', line 7 def initialize(params = nil) @params = params end |
Instance Attribute Details
#crashlog ⇒ Object (readonly)
Returns the value of attribute crashlog.
5 6 7 |
# File 'lib/crashdesk/reporters/test.rb', line 5 def crashlog @crashlog end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
5 6 7 |
# File 'lib/crashdesk/reporters/test.rb', line 5 def params @params end |
Instance Method Details
#run(crashlog) ⇒ Object
11 12 13 14 |
# File 'lib/crashdesk/reporters/test.rb', line 11 def run(crashlog) @crashlog = crashlog @crashlog.to_hash end |