Class: BlockKit::Composition::ConversationFilter

Inherits:
Base
  • Object
show all
Defined in:
lib/block_kit/composition/conversation_filter.rb

Constant Summary collapse

VALID_INCLUDES =
[
  IM = "im",
  MPIM = "mpim",
  PUBLIC = "public",
  PRIVATE = "private"
].freeze

Instance Method Summary collapse

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

Instance Method Details

#as_jsonObject



33
34
35
36
37
38
39
# File 'lib/block_kit/composition/conversation_filter.rb', line 33

def as_json(*)
  super().except(:type).merge(
    include: include&.to_a,
    exclude_external_shared_channels: exclude_external_shared_channels,
    exclude_bot_users: exclude_bot_users
  ).compact
end