Class: NotionRubyMapping::Heading1Block
- Inherits:
-
TextSubBlockColorBaseBlock
- Object
- Base
- Block
- TextSubBlockColorBaseBlock
- NotionRubyMapping::Heading1Block
- Defined in:
- lib/notion_ruby_mapping/blocks/heading1_block.rb
Overview
Notion block
Instance Attribute Summary
Attributes inherited from TextSubBlockColorBaseBlock
Attributes inherited from Block
#can_append, #can_have_children, #caption, #color, #language, #rich_text_array, #url
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(text_info = nil, color: nil, json: nil, id: nil, parent: nil) ⇒ Heading1Block
constructor
A new instance of Heading1Block.
- #type ⇒ String (frozen)
Methods inherited from TextSubBlockColorBaseBlock
Methods inherited from Block
#block_json, #children_block_json, decode_block, #decode_block_caption, #decode_block_rich_text_array, #decode_color, #destroy, find, type2class, #update, #update_block_json
Methods inherited from Base
#append_block_children, #assert_parent_children_pair, #assign_property, #block?, #children, create_from_json, #created_time, #database?, dry_run_script, #get, #icon, #inspect, #json_properties, #last_edited_time, #new_record?, #page?, #properties, #property_values_json, #reload, #restore_from_json, #save, #set_icon, #synced_block_original?, #update_json
Constructor Details
#initialize(text_info = nil, color: nil, json: nil, id: nil, parent: nil) ⇒ Heading1Block
8 9 10 11 |
# File 'lib/notion_ruby_mapping/blocks/heading1_block.rb', line 8 def initialize(text_info = nil, color: nil, json: nil, id: nil, parent: nil) super(text_info, color: color, json: json, id: id, parent: parent) @can_have_children = false end |
Instance Method Details
#type ⇒ String (frozen)
14 15 16 |
# File 'lib/notion_ruby_mapping/blocks/heading1_block.rb', line 14 def type "heading_1" end |