Exception: Vnstat::UnknownInterface

Inherits:
Error
  • Object
show all
Defined in:
lib/vnstat/errors/unknown_interface.rb

Overview

An exception that is raised when the specified interface could not be found among the known ones.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interface_id) ⇒ UnknownInterface

Returns a new instance of UnknownInterface.



10
11
12
# File 'lib/vnstat/errors/unknown_interface.rb', line 10

def initialize(interface_id)
  @interface_id = interface_id
end

Instance Attribute Details

#interface_idObject (readonly)

Returns the value of attribute interface_id.



8
9
10
# File 'lib/vnstat/errors/unknown_interface.rb', line 8

def interface_id
  @interface_id
end