Class: NotionRubyMapping::List
- Includes:
- Enumerable
- Defined in:
- lib/notion_ruby_mapping/list.rb
Overview
Notion List object
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#[], #add_property_for_update, #assign_property, #children, #clear_object, create_from_json, #create_json, #icon, #initialize, #json_properties, #payload, #properties, #reload, #set_icon, #update_json
Constructor Details
This class inherits a constructor from NotionRubyMapping::Base
Instance Method Details
#each ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/notion_ruby_mapping/list.rb', line 8 def each return enum_for(:each) unless block_given? json["results"].each do |block_json| yield Base.create_from_json(block_json) end end |