Sha256: 64a97f15d553a7d4cfbffaa207cb715ecabcad6dd755f2112f63469e1d88e101
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true module Slack module BlockKit class Element class UsersSelectElement < SelectElement using Refinements::HashCompact attr_accessor :initial_user def self.populate(hash, object) object.initial_user = hash[:initial_user] if hash.key?(:initial_user) super(hash, object) end def to_h super.merge( initial_user: initial_user ).compact end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack-block-kit-0.1.0 | lib/slack/block_kit/element/users_select_element.rb |