Class: NotionAPI::CalloutBlock

Inherits:
BlockTemplate show all
Defined in:
lib/notion_api/notion_types/callout_block.rb

Overview

same as quote… works similarly to page block

Constant Summary

Constants included from Utils

Utils::URLS

Class Attribute Summary collapse

Attributes inherited from BlockTemplate

#id, #parent_id, #title

Attributes inherited from Core

#clean_id, #cookies, #headers

Instance Method Summary collapse

Methods inherited from BlockTemplate

#convert, #create, #duplicate, #initialize, #move

Methods included from Utils

#build_payload

Methods inherited from Core

#children, #children_ids, #get_page, #initialize

Constructor Details

This class inherits a constructor from NotionAPI::BlockTemplate

Class Attribute Details

.notion_typeObject (readonly)

Returns the value of attribute notion_type.



13
14
15
# File 'lib/notion_api/notion_types/callout_block.rb', line 13

def notion_type
  @notion_type
end

.typeObject (readonly)

Returns the value of attribute type.



13
14
15
# File 'lib/notion_api/notion_types/callout_block.rb', line 13

def type
  @type
end

Instance Method Details

#typeObject



8
9
10
# File 'lib/notion_api/notion_types/callout_block.rb', line 8

def type
  NotionAPI::CalloutBlock.notion_type
end