Class: NotionAPI::CodeBlock
- Inherits:
-
BlockTemplate
- Object
- Core
- BlockTemplate
- NotionAPI::CodeBlock
- Defined in:
- lib/notion_api/notion_types/code_block.rb
Overview
Code block: used to store code, should be assigned a coding language.
Constant Summary
Constants included from Utils
Class Attribute Summary collapse
-
.notion_type ⇒ Object
readonly
Returns the value of attribute notion_type.
-
.type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from BlockTemplate
Attributes inherited from Core
Instance Method Summary collapse
Methods inherited from BlockTemplate
#convert, #create, #duplicate, #initialize, #move
Methods included from Utils
Methods inherited from Core
#children, #children_ids, #get_page, #initialize
Constructor Details
This class inherits a constructor from NotionAPI::BlockTemplate
Class Attribute Details
.notion_type ⇒ Object (readonly)
Returns the value of attribute notion_type.
13 14 15 |
# File 'lib/notion_api/notion_types/code_block.rb', line 13 def notion_type @notion_type end |
.type ⇒ Object (readonly)
Returns the value of attribute type.
13 14 15 |
# File 'lib/notion_api/notion_types/code_block.rb', line 13 def type @type end |
Instance Method Details
#type ⇒ Object
8 9 10 |
# File 'lib/notion_api/notion_types/code_block.rb', line 8 def type NotionAPI::CodeBlock.notion_type end |