module RailsConnector class ObjDataFromHash < ObjData def initialize(hash, type_hash = {}) @hash = hash.stringify_keys @type_hash = type_hash.stringify_keys end def value_and_type_of(attribute_name) [@hash[attribute_name], @type_hash[attribute_name]] end def has_custom_attribute?(name) @hash.has_key?(name) end end end