lib/notion/api/endpoints/pages.rb in notion-ruby-client-0.0.3 vs lib/notion/api/endpoints/pages.rb in notion-ruby-client-0.0.4

- old
+ new

@@ -32,9 +32,12 @@ # Properties of this page. # The schema for the page's keys and values is described by the properties of # the database this page belongs to. key string Name of a property as it # appears in Notion, or property ID. value object Object containing a value # specific to the property type, e.g. {"checkbox": true}. + # + # @option options [Object] :children + # An optional array of Block objects representing the Page’s conent def create_page(options = {}) throw ArgumentError.new('Required arguments :parent.database_id missing') if options.dig(:parent, :database_id).nil? post("pages", options) end