Method: NotionRubyMapping::NumberProperty#initialize

Defined in:
lib/notion_ruby_mapping/properties/number_property.rb

#initialize(name, will_update: false, base_type: "page", json: nil, format: nil, property_id: nil, property_cache: nil) ⇒ NumberProperty



56
57
58
59
60
61
62
# File 'lib/notion_ruby_mapping/properties/number_property.rb', line 56

def initialize(name, will_update: false, base_type: "page", json: nil, format: nil, property_id: nil,
               property_cache: nil)
  super name, will_update: will_update, base_type: base_type, property_id: property_id,
              property_cache: property_cache
  @json = json
  @json ||= {"format" => format || "number"} if database_or_data_source?
end