Sha256: a78b74fe4b690b7f1210ab5a50a8283b287bed853f7118fb9979457bf92c2450
Contents?: true
Size: 541 Bytes
Versions: 21
Compression:
Stored size: 541 Bytes
Contents
class Ey::Core::Client class Real def acknowledge_alert(params={}) id = params.delete("id") request( method: :put, path: "legacy-alerts/#{id}/acknowledge" ) end end class Mock def acknowledge_alert(params={}) id = params.delete("id") if alert = self.data[:alerts][id] alert["acknowledged"] = true response( :body => {"legacy_alert" => alert}, :status => 200 ) else response(status: 404) end end end end
Version data entries
21 entries across 21 versions & 2 rubygems