Sha256: 81ead478876ea267d0e52ac38abecd8bf7eb27b450539729e13466fe59c8cbff
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 Bytes
Contents
require 'json' class Struct def to_map map = Hash.new self.members.each { |m| map[m] = self[m] } map end def to_json(*a) to_map.to_json(*a) end end module Slack Attachment = Struct.new(:fallback, :text, :pretext, :color, :mrkdwn_in, :fields) AttachmentField = Struct.new(:title, :value, :short) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack.rb-0.0.6 | lib/slack/structs.rb |