class Capistrano::Slacky::Block::Header

Public Class Methods

new(text) click to toggle source
# File lib/capistrano/slacky/block/header.rb, line 7
def initialize(text)
  @text = text
end

Public Instance Methods

as_json() click to toggle source
# File lib/capistrano/slacky/block/header.rb, line 11
def as_json
  {
    type: :header,
    text: {
      type: :plain_text,
      text: @text,
      emoji: true
    }
  }
end