Class: NotionAPI::CollectionViewPage

Inherits:
CollectionView show all
Defined in:
lib/notion_api/notion_types/collection_view_blocks.rb

Overview

class that represents a CollectionViewPage, inheriting all properties from CollectionView

Constant Summary

Constants included from Utils

Utils::URLS

Class Attribute Summary collapse

Instance Attribute Summary collapse

Attributes inherited from CollectionView

#collection_id, #title, #view_id

Attributes inherited from Core

#clean_id, #cookies, #headers

Instance Method Summary collapse

Methods inherited from CollectionView

#add_property, #add_row, #create_singleton_methods_and_instance_variables, #initialize, #row, #row_ids, #rows

Methods inherited from Core

#children, #children_ids, #get_page, #initialize

Methods included from Utils

#build_payload

Constructor Details

This class inherits a constructor from NotionAPI::CollectionView

Class Attribute Details

.notion_typeObject (readonly)

Returns the value of attribute notion_type.



311
312
313
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 311

def notion_type
  @notion_type
end

.parent_idObject (readonly)

Returns the value of attribute parent_id.



311
312
313
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 311

def parent_id
  @parent_id
end

.typeObject (readonly)

Returns the value of attribute type.



311
312
313
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 311

def type
  @type
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



314
315
316
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 314

def id
  @id
end

#parent_idObject (readonly)

Returns the value of attribute parent_id.



314
315
316
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 314

def parent_id
  @parent_id
end

Instance Method Details

#typeObject



306
307
308
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 306

def type
  NotionAPI::CollectionViewRow.notion_type
end