class Capistrano::Slacky::Block::Section::Field

Public Class Methods

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

Public Instance Methods

as_json() click to toggle source
# File lib/capistrano/slacky/block/section.rb, line 25
def as_json
  {
    type: :mrkdwn, text: @text
  }
end