class FDE::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 8 def initialize(title, value, short = false) @title = title @value = value @short = short end
Public Instance Methods
to_h()
click to toggle source
# File lib/slack/field.rb, line 14 def to_h { title: @title, value: @value, short: @short } end
Also aliased as: to_hash