CGA1123 / slack-ruby-block-kit

Lines not covered in tests TCV-001
Coverage
Major
2 years ago4 years old
Lines not covered in tests
1# frozen_string_literal: true
2
3module Slack4  module BlockKit5    VERSION = '0.21.0'6  end7end
Lines not covered in tests
 80            emoji: emoji
 81          )
 82
 83          yield(element) if block_given? 84 85          append(element) 86        end
 87
 88        def external_select(placeholder:, action_id:, initial: nil, min_query_length: nil, emoji: nil)
Lines not covered in tests
 73        end
 74
 75        def timepicker(action_id:, placeholder: nil, initial: nil, emoji: nil)
 76          element = Element::Timepicker.new( 77            placeholder: placeholder,
 78            action_id: action_id,
 79            initial: initial,
Lines not covered in tests
16
17        def as_json(*)
18          {
19            type: TYPE,20            block_id: @block_id
21          }.compact
22        end
Lines not covered in tests
11        TYPE = 'divider'
12
13        def initialize(block_id: nil)
14          @block_id = block_id15        end
16
17        def as_json(*)