Method: Megam::Error#to_hash
- Defined in:
- lib/megam/core/error.rb
#to_hash ⇒ Object
Transform the ruby obj -> to a Hash
45 46 47 48 49 50 |
# File 'lib/megam/core/error.rb', line 45 def to_hash index_hash = Hash.new index_hash["json_claz"] = self.class.name index_hash["some_msg"] = some_msg index_hash end |