Method: Megam::Error#from_hash

Defined in:
lib/megam/core/error.rb

#from_hash(o) ⇒ Object



79
80
81
82
83
84
85
# File 'lib/megam/core/error.rb', line 79

def from_hash(o)
  @some_msg[:code] = o["code"] if o.has_key?("code")
  @some_msg[:msg_type] = o["msg_type"] if o.has_key?("msg_type")
  @some_msg[:msg]= o["msg"] if o.has_key?("msg")
  @some_msg[:links] = o["links"] if o.has_key?("links")
  self
end