Class: NotionRb::Operations::SetBlockType
- Inherits:
-
Object
- Object
- NotionRb::Operations::SetBlockType
- Defined in:
- lib/notion_rb/operations/set_block_type.rb
Constant Summary collapse
- DEFAULT_VERSION =
1
- COMMAND_TYPE =
:set
- OPERATION_NAME =
:set_block_type
- TABLE =
'block'
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #args ⇒ Object
- #commands ⇒ Object
-
#initialize(id, type) ⇒ SetBlockType
constructor
A new instance of SetBlockType.
Constructor Details
#initialize(id, type) ⇒ SetBlockType
Returns a new instance of SetBlockType.
13 14 15 16 |
# File 'lib/notion_rb/operations/set_block_type.rb', line 13 def initialize(id, type) @id = id @type = type end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
11 12 13 |
# File 'lib/notion_rb/operations/set_block_type.rb', line 11 def id @id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/notion_rb/operations/set_block_type.rb', line 11 def type @type end |
Instance Method Details
#args ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/notion_rb/operations/set_block_type.rb', line 29 def args { type: type, version: DEFAULT_VERSION, id: id } end |