class Professionali::Mash
Public Class Methods
from_json(json_string)
click to toggle source
# File lib/professionali/mash.rb, line 6 def self.from_json(json_string) result_hash = ::MultiJson.decode(json_string) puts result_hash if result_hash.is_a?(Array) result_hash.map{ |e| new(e) } else new(result_hash) end end