Sha256: 4724081e57afec43c0919f629e42b4e41e1b3fdb435f1830ee3bd820b0ae5425
Contents?: true
Size: 425 Bytes
Versions: 5
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true module MyTankInfo class TankRulesResource < Resource def list(tank_id:) response = get_request("/api/tanks/#{tank_id}/rules") Collection.from_response(response, type: TankRule) end def update(tank_id:, attributes:) response = put_request("api/tanks/#{tank_id}/rules", body: attributes) Collection.from_response(response, type: TankRule) end end end
Version data entries
5 entries across 5 versions & 1 rubygems