Sha256: 8dc2fb51f7d75b860368d41d67bff2c880a05d1387c60a063230cec736006b89
Contents?: true
Size: 354 Bytes
Versions: 5
Compression:
Stored size: 354 Bytes
Contents
# frozen_string_literal: true module MyTankInfo class AlarmNotesResource < Resource def create(alarm_id:, **attributes) AlarmNote.new post_request("api/alarmhistory/#{alarm_id}/notes", body: attributes).body end def delete(alarm_id:, note_id:) delete_request("api/alarmhistory/#{alarm_id}/notes/#{note_id}") end end end
Version data entries
5 entries across 5 versions & 1 rubygems