Sha256: 958199b1e209bd84cf798fc899b21bbb33a5469b9f4042850e28daf00a07bbf8
Contents?: true
Size: 283 Bytes
Versions: 17
Compression:
Stored size: 283 Bytes
Contents
# frozen_string_literal: true module ONEAccess module Serializable def represented_by(representer_class) @representer_class = representer_class end def from_json(json) obj = new @representer_class.new(obj).from_json(json) obj end end end
Version data entries
17 entries across 17 versions & 1 rubygems