Class: Crashdesk::Reporters::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/crashdesk/reporters/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#crashlogObject (readonly)

Returns the value of attribute crashlog.



5
6
7
# File 'lib/crashdesk/reporters/test.rb', line 5

def crashlog
  @crashlog
end

#paramsObject (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