Class: TD::Types::PageBlock::Details

Inherits:
TD::Types::PageBlock show all
Defined in:
lib/tdlib/types/page_block/details.rb

Overview

A collapsible block.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#headerTD::Types::RichText

Always visible heading for the block.

Returns:



7
8
9
# File 'lib/tdlib/types/page_block/details.rb', line 7

def header
  @header
end

#is_openBoolean

True, if the block is open by default.

Returns:

  • (Boolean)

    the current value of is_open



7
8
9
# File 'lib/tdlib/types/page_block/details.rb', line 7

def is_open
  @is_open
end

#page_blocksArray<TD::Types::PageBlock>

Block contents.

Returns:



7
8
9
# File 'lib/tdlib/types/page_block/details.rb', line 7

def page_blocks
  @page_blocks
end