Class: GhInspector::ExceptionHound

Inherits:
Object
  • Object
show all
Defined in:
lib/gh_inspector/exception_hound.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ ExceptionHound

Returns a new instance of ExceptionHound.



5
6
7
# File 'lib/gh_inspector/exception_hound.rb', line 5

def initialize(error)
  self.message = find_message error
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



3
4
5
# File 'lib/gh_inspector/exception_hound.rb', line 3

def message
  @message
end

Instance Method Details

#find_message(error) ⇒ Object



9
10
11
# File 'lib/gh_inspector/exception_hound.rb', line 9

def find_message(error)
  error.to_s
end

#queryObject



13
14
15
16
17
18
19
# File 'lib/gh_inspector/exception_hound.rb', line 13

def query
  undefined
  simple_nil
  demangle_instances

  message
end