Sha256: 1331d8e9de800d2d4271c328f91116dbbc5cd885c5ae91ef8b117048ad4a1467
Contents?: true
Size: 807 Bytes
Versions: 9
Compression:
Stored size: 807 Bytes
Contents
module Foobara module BuiltinTypes module Entity module Casters class PrimaryKey < Value::Caster class << self def requires_declaration_data? true end def requires_type? true end end def entity_class declaration_data.target_class end def primary_key_type entity_class.primary_key_type end def applicable?(value) primary_key_type.applicable?(value) end def transform(primary_key) entity_class.thunk(primary_key) end def applies_message primary_key_type.value_caster.applies_message end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems