Class: NotionAPI::CollectionViewPage

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

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, #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.



238
239
240
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 238

def notion_type
  @notion_type
end

.parent_idObject (readonly)

Returns the value of attribute parent_id.



238
239
240
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 238

def parent_id
  @parent_id
end

.typeObject (readonly)

Returns the value of attribute type.



238
239
240
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 238

def type
  @type
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



241
242
243
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 241

def id
  @id
end

#parent_idObject (readonly)

Returns the value of attribute parent_id.



241
242
243
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 241

def parent_id
  @parent_id
end

Instance Method Details

#typeObject



233
234
235
# File 'lib/notion_api/notion_types/collection_view_blocks.rb', line 233

def type
  NotionAPI::CollectionViewRow.notion_type
end