Exception: Exception

Defined in:
lib/fiveruns/json/add/core.rb

Direct Known Subclasses

Fiveruns::Dash::ShutdownSignal

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.fjson_create(object) ⇒ Object



104
105
106
107
108
# File 'lib/fiveruns/json/add/core.rb', line 104

def self.fjson_create(object)
  result = new(object['m'])
  result.set_backtrace object['b']
  result
end

Instance Method Details

#to_fjson(*args) ⇒ Object



110
111
112
113
114
115
116
# File 'lib/fiveruns/json/add/core.rb', line 110

def to_fjson(*args)
  {
    'json_class' => self.class.name,
    'm'   => message,
    'b' => backtrace,
  }.to_fjson(*args)
end