lib/dingtalk/robot/strategies/markdown_strategy.rb in dingtalk-robot-0.2.0 vs lib/dingtalk/robot/strategies/markdown_strategy.rb in dingtalk-robot-0.2.1
- old
+ new
@@ -7,10 +7,10 @@
def initialize(webhook_url, message)
@webhook_url = webhook_url
@message = message
end
- # @option options [String] :title (required)
+ # @option options [String] :title
# @option options [Array<String>] :at_mobiles
# @option options [Boolean] :is_at_all
def notify(**options)
title = options[:title].to_s
raise ArgumentError, 'title must be present, strategy: markdown' if title.empty?