Class: BlockKit::Elements::Select
- Defined in:
- lib/block_kit/elements/select.rb
Direct Known Subclasses
ChannelsSelect, ConversationsSelect, ExternalSelect, MultiSelect, StaticSelect, UsersSelect
Constant Summary
Constants included from Concerns::HasPlaceholder
Concerns::HasPlaceholder::MAX_TEXT_LENGTH
Constants inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Select
constructor
A new instance of Select.
Methods included from Concerns::HasPlaceholder
Methods included from Concerns::FocusableOnLoad
Methods included from Concerns::Confirmable
Methods inherited from Base
Methods inherited from Base
#==, #as_json, fix, #fix_validation_errors, #fix_validation_errors!, fixes, inspect, #inspect, #pretty_print, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ Select
Returns a new instance of Select.
15 16 17 18 19 |
# File 'lib/block_kit/elements/select.rb', line 15 def initialize(attributes = {}) raise NotImplementedError, "#{self.class} is an abstract class and can't be instantiated." if instance_of?(Select) super end |
Class Method Details
.inherited(subclass) ⇒ Object
11 12 13 |
# File 'lib/block_kit/elements/select.rb', line 11 def self.inherited(subclass) subclass.attribute_fixers = attribute_fixers.deep_dup end |