Class: Aio::Module::Description::Protocol
- Inherits:
-
Aio::Module::Description
- Object
- Aio::Module::Description
- Aio::Module::Description::Protocol
- Includes:
- Aio::Module
- Defined in:
- lib/modules/description/style/protocol.rb
Instance Attribute Summary
Attributes inherited from Aio::Module::Description
Instance Method Summary collapse
-
#initialize ⇒ Protocol
constructor
A new instance of Protocol.
- #to_s ⇒ Object
Methods inherited from Aio::Module::Description
#author, #case, #clear, #description, #license, #name, #parent?, #set_defaults, #temp, #title, #type
Constructor Details
#initialize ⇒ Protocol
Returns a new instance of Protocol.
8 9 10 11 12 13 14 15 16 |
# File 'lib/modules/description/style/protocol.rb', line 8 def initialize super({ :author => "Elin", :case => :protocol, :name => "接口协议Down", :title => "接口协议检查", :description => "当状态是起来的,但是协议为Down,则纳入警告" }) end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/modules/description/style/protocol.rb', line 18 def to_s "接口状态应该为物理状态Up,并且协议状态Up。" end |