lib/chatwork/plugin.rb
# API token to authenticate with ChatWork API
#
# @return [String]
API token to authenticate with ChatWork API
API token to authenticate with ChatWork API
def notify(room_id:, text: '')
      return ChatWork::Message.create(room_id: room_id, body: text) unless text.empty?
      return if reports.empty?
      report = "[info][title]Danger Report[/title]#{pr_info}\n#{reports.join("\n")}[/info]"
      ChatWork::Message.create(room_id: room_id, body: report)
    end
def notify ( room_id : , text : '' ) return ChatWork :: Message . create ( room_id : room_id , body : text ) unless text . empty? return if reports . empty? report = "[info][title]Danger Report[/title]#{pr_info}\n#{reports.join("\n")}[/info]" ChatWork :: Message . create ( room_id : room_id , body : report ) end
API token to authenticate with ChatWork API
API token to authenticate with ChatWork API
None
String
room_id
text