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

Version Path
my_tank_info-1.1.1 lib/my_tank_info/resources/alarm_notes.rb
my_tank_info-1.1.0 lib/my_tank_info/resources/alarm_notes.rb
my_tank_info-1.0.2 lib/my_tank_info/resources/alarm_notes.rb
my_tank_info-1.0.1 lib/my_tank_info/resources/alarm_notes.rb
my_tank_info-1.0.0 lib/my_tank_info/resources/alarm_notes.rb