class FDE::Slack::Author
Attributes
icon[RW]
link[RW]
name[RW]
Public Class Methods
new(name, link = nil, icon = nil)
click to toggle source
# File lib/slack/author.rb, line 6 def initialize(name, link = nil, icon = nil) @name = name @link = link @icon = icon end
Public Instance Methods
to_h()
click to toggle source
# File lib/slack/author.rb, line 12 def to_h hash = {} hash[:author_name] = @name hash[:author_link] = @link if @link hash[:author_icon] = @icon if @icon hash end
Also aliased as: to_hash