class FDE::Slack::Footer

Attributes

icon[RW]
value[RW]

Public Class Methods

new(value, icon = nil) click to toggle source
# File lib/slack/footer.rb, line 6
def initialize(value, icon = nil)
  @value = value
  @icon = icon
end

Public Instance Methods

to_h() click to toggle source
# File lib/slack/footer.rb, line 11
def to_h
  hash = {}
  hash[:footer] = @value
  hash[:footer_icon] = @icon if @icon
  hash
end
Also aliased as: to_hash
to_hash()
Alias for: to_h