class MyTankInfo::AlarmNotesResource
Public Instance Methods
create(alarm_id:, **attributes)
click to toggle source
# File lib/my_tank_info/resources/alarm_notes.rb, line 5 def create(alarm_id:, **attributes) AlarmNote.new post_request("api/alarmhistory/#{alarm_id}/notes", body: attributes).body end
delete(alarm_id:, note_id:)
click to toggle source
# File lib/my_tank_info/resources/alarm_notes.rb, line 9 def delete(alarm_id:, note_id:) delete_request("api/alarmhistory/#{alarm_id}/notes/#{note_id}") end