def create_resource(json_hash)
      unless json_hash.is_a?(Hash)
        raise(ArgumentError, "JSON parameter have to be a Hash object", caller)
      end

      json_parsed = {}
      json_hash.each do |attr, value|
        json_parsed[attr] = look_for_resource(attr, value)
      end
      resource_class.new(json_parsed)
    end
def create_resource(json_hash)
      unless json_hash.is_a?(Hash)
        raise(ArgumentError, "JSON parameter have to be a Hash object", caller)
      end

      json_parsed = {}
      json_hash.each do |attr, value|
        json_parsed[attr] = look_for_resource(attr, value)
      end
      resource_class.new(json_parsed)
    end
Internals: creates Resource looking recursively for JSON
 objects and transforming in Resources. To create Resource,
 this method use #resource_class.new(json).

 json_hash - Hash parsed from Response body.

 Returns Resource from #resource_class.
 Raises ArgumentError if json is not a Hash.