Class: BlockKit::Elements::MultiExternalSelect

Inherits:
MultiSelect show all
Includes:
Concerns::External
Defined in:
lib/block_kit/elements/multi_external_select.rb

Constant Summary

Constants included from Concerns::HasPlaceholder

Concerns::HasPlaceholder::MAX_TEXT_LENGTH

Constants inherited from Base

Base::MAX_ACTION_ID_LENGTH

Instance Method Summary collapse

Methods inherited from MultiSelect

inherited, #initialize

Methods inherited from Select

inherited, #initialize

Methods inherited from Base

inherited, #initialize

Methods inherited from Base

#==, fix, #fix_validation_errors, #fix_validation_errors!, fixes, inherited, #initialize, inspect, #inspect, #pretty_print, #to_json

Constructor Details

This class inherits a constructor from BlockKit::Elements::MultiSelect

Instance Method Details

#as_jsonObject



16
17
18
# File 'lib/block_kit/elements/multi_external_select.rb', line 16

def as_json(*)
  super.merge(initial_options: initial_options&.map(&:as_json)).compact
end