Sha256: cc86944af2fcaa65787c726ea5be4ce532de394d911e2196078dc3b9830bb431
Contents?: true
Size: 407 Bytes
Versions: 7
Compression:
Stored size: 407 Bytes
Contents
# frozen_string_literal: true module SlackRubyBot module SpecHelpers private def parse(actual) actual = { message: actual } unless actual.is_a?(Hash) attachments = actual[:attachments] attachments = [attachments] unless attachments.nil? || attachments.is_a?(Array) [actual[:channel] || 'channel', actual[:user] || 'user', actual[:message], attachments] end end end
Version data entries
7 entries across 7 versions & 2 rubygems