lib/nylas/model/attribute_definition.rb in nylas-4.6.5 vs lib/nylas/model/attribute_definition.rb in nylas-4.6.6

- old
+ new

@@ -5,9 +5,10 @@ # Define a particular attribute for a given model class AttributeDefinition extend Forwardable def_delegators :type, :cast, :serialize attr_accessor :type_name, :exclude_when, :default + def initialize(type_name:, exclude_when:, default:) self.type_name = type_name self.exclude_when = exclude_when self.default = default end