Exception: Vnstat::UnknownInterface
- 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
-
#interface_id ⇒ Object
readonly
Returns the value of attribute interface_id.
Instance Method Summary collapse
-
#initialize(interface_id) ⇒ UnknownInterface
constructor
A new instance of UnknownInterface.
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_id ⇒ Object (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 |