Class: NotionAPI::CollectionViewRow
- Defined in:
- lib/notion_api/notion_types/collection_view_blocks.rb
Overview
class that represents each row in a CollectionView
Constant Summary
Constants included from Utils
Class Attribute Summary collapse
-
.notion_type ⇒ Object
readonly
Returns the value of attribute notion_type.
-
.parent_id ⇒ Object
readonly
Returns the value of attribute parent_id.
-
.type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#parent_id ⇒ Object
readonly
Returns the value of attribute parent_id.
Attributes inherited from Core
Instance Method Summary collapse
-
#initialize(id, parent_id, collection_id, view_id) ⇒ CollectionViewRow
constructor
A new instance of CollectionViewRow.
- #inspect ⇒ Object
- #type ⇒ Object
Methods inherited from Core
#children, #children_ids, #get_page
Methods included from Utils
Constructor Details
#initialize(id, parent_id, collection_id, view_id) ⇒ CollectionViewRow
Returns a new instance of CollectionViewRow.
329 330 331 332 333 334 |
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 329 def initialize(id, parent_id, collection_id, view_id) @id = id @parent_id = parent_id @collection_id = collection_id @view_id = view_id end |
Class Attribute Details
.notion_type ⇒ Object (readonly)
Returns the value of attribute notion_type.
324 325 326 |
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 324 def notion_type @notion_type end |
.parent_id ⇒ Object (readonly)
Returns the value of attribute parent_id.
324 325 326 |
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 324 def parent_id @parent_id end |
.type ⇒ Object (readonly)
Returns the value of attribute type.
324 325 326 |
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 324 def type @type end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
327 328 329 |
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 327 def id @id end |
#parent_id ⇒ Object (readonly)
Returns the value of attribute parent_id.
327 328 329 |
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 327 def parent_id @parent_id end |
Instance Method Details
#inspect ⇒ Object
319 320 321 |
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 319 def inspect "CollectionViewRow - id: #{self.id} - parent id: #{self.parent_id}" end |
#type ⇒ Object
315 316 317 |
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 315 def type NotionAPI::CollectionViewRow.notion_type end |