Class: BlockKit::Elements::FileInput

Inherits:
Base
  • Object
show all
Defined in:
lib/block_kit/elements/file_input.rb

Constant Summary collapse

VALID_MAX_FILES_RANGE =
1..10

Constants inherited from Base

Base::MAX_ACTION_ID_LENGTH

Instance Method Summary collapse

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::Base

Instance Method Details

#as_jsonObject



19
20
21
22
23
24
# File 'lib/block_kit/elements/file_input.rb', line 19

def as_json(*)
  super.merge(
    filetypes: filetypes&.to_a,
    max_files: max_files
  ).compact
end