module Remitano::Client::Helper

Public Class Methods

parse_json(str) click to toggle source
# File lib/remitano/client/helper.rb, line 3
def self.parse_json(str)
  json = JSON.parse(str)
  if json.is_a? Array
    json.map do |hash|
      Hashie::Mash[hash]
    end
  else
    Hashie::Mash[json]
  end
end