Sha256: 7cc92b6636531b0936941278de953ce2341e67eeeae0ab0ca30e242ef15165a0
Contents?: true
Size: 786 Bytes
Versions: 2
Compression:
Stored size: 786 Bytes
Contents
# frozen_string_literal: true module Slack module BlockKit module Layout class RichText # https://api.slack.com/reference/block-kit/blocks#rich_text_quote class RichTextQuote include RichTextElements TYPE = 'rich_text_quote' attr_accessor :elements, :border def initialize(border: nil) @elements = [] @border = border yield(self) if block_given? end def append(element) @elements << element self end def as_json(*) { type: TYPE, border: @border, elements: @elements.map(&:as_json) }.compact end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-block-kit-0.25.0 | lib/slack/block_kit/layout/rich_text/rich_text_quote.rb |
slack-ruby-block-kit-0.24.0 | lib/slack/block_kit/layout/rich_text/rich_text_quote.rb |