class Slackoff::Post
Attributes
channel[RW]
text[RW]
username[RW]
Public Instance Methods
to_json()
click to toggle source
# File lib/slackoff.rb, line 45 def to_json body = {} body[:text] = @text if @text body[:channel] = @channel if @channel body[:username] = @username if @username body.to_json end