lib/nylas/model/attribute_definition.rb in nylas-5.6.0 vs lib/nylas/model/attribute_definition.rb in nylas-5.6.1
- old
+ new
@@ -3,10 +3,10 @@
module Nylas
module Model
# Define a particular attribute for a given model
class AttributeDefinition
extend Forwardable
- def_delegators :type, :cast, :serialize
+ def_delegators :type, :cast, :serialize, :serialize_for_api
attr_accessor :type_name, :read_only, :default
def initialize(type_name:, read_only:, default:)
self.type_name = type_name
self.read_only = read_only