lib/nylas/model/attribute_definition.rb in nylas-4.2.4 vs lib/nylas/model/attribute_definition.rb in nylas-4.3.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Nylas module Model # Define a particular attribute for a given model class AttributeDefinition extend Forwardable @@ -9,10 +11,12 @@ self.type_name = type_name self.exclude_when = exclude_when self.default = default end - private def type + private + + def type Types.registry[type_name] end end end end