Sha256: 3f132a59ce7600e457477cc808de575509fa0c3d3668f29c07dc982eb0abee8d
Contents?: true
Size: 442 Bytes
Versions: 10
Compression:
Stored size: 442 Bytes
Contents
module FDE module Slack class Author attr_accessor :name, :link, :icon def initialize(name, link = nil, icon = nil) @name = name @link = link @icon = icon end def to_h hash = {} hash[:author_name] = @name hash[:author_link] = @link if @link hash[:author_icon] = @icon if @icon hash end alias_method :to_hash, :to_h end end end
Version data entries
10 entries across 10 versions & 1 rubygems