class Slack::Field

Attributes

short[RW]
title[RW]
value[RW]

Public Class Methods

new(title, value, short = false) click to toggle source
# File lib/slack/field.rb, line 7
def initialize(title, value, short = false)
  @title = title
  @value = value
  @short = short
end

Public Instance Methods

as_json() click to toggle source
# File lib/slack/field.rb, line 13
def as_json
  {
    title: title,
    value: value,
    short: short
  }
end