class Slack::Payload::Attachment

Attributes

author_name[RW]
color[RW]
fallback[RW]
pretext[RW]
text[RW]
title[RW]

Public Instance Methods

as_json(options={}) click to toggle source
# File lib/Slack.rb, line 10
def as_json(options={})
{
    pretext: @pretext,
    color: @color,
    fallback: @fallback,
    title: @title,
    text: @text,
    author_name: @author_name,
    footer: @footer
}
end
to_json(*options) click to toggle source
# File lib/Slack.rb, line 22
def to_json(*options)
    as_json(*options).to_json(*options)
end