Exception: Zabbix::Monitor::EmptyFileError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/zmonitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason, file) ⇒ EmptyFileError

Returns a new instance of EmptyFileError.



14
15
16
17
18
# File 'lib/zmonitor.rb', line 14

def initialize(reason, file)
  @message = reason
  puts "[INFO] Deleting #{file}"
  File.delete(file)
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



13
14
15
# File 'lib/zmonitor.rb', line 13

def message
  @message
end