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, #clean_property_names, #create_singleton_methods_and_instance_variables, extract_collection_view_column_names, #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.



347
348
349
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 347

def notion_type
  @notion_type
end

.parent_idObject (readonly)

Returns the value of attribute parent_id.



347
348
349
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 347

def parent_id
  @parent_id
end

.typeObject (readonly)

Returns the value of attribute type.



347
348
349
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 347

def type
  @type
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



350
351
352
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 350

def id
  @id
end

#parent_idObject (readonly)

Returns the value of attribute parent_id.



350
351
352
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 350

def parent_id
  @parent_id
end

Instance Method Details

#typeObject



342
343
344
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 342

def type
  NotionAPI::CollectionViewRow.notion_type
end