Sha256: 32c7f708308f64d386676bf3e2806dae0c525a8fb48c12d920cd66412c5e01e0
Contents?: true
Size: 391 Bytes
Versions: 19
Compression:
Stored size: 391 Bytes
Contents
module BridgeCache::Plugins class DataTransform def self.set_bridge_id(row) if row.key?('id') row['bridge_id'] = row['id'] if row.key?('id') row.delete('id') end row end def self.valid_json?(json) json = JSON.parse(json) unless json.class == Hash return json rescue JSON::ParserError => e return false end end end
Version data entries
19 entries across 19 versions & 1 rubygems