Class: Y2Network::Presenters::ConfigSummary
- Inherits:
-
Object
- Object
- Y2Network::Presenters::ConfigSummary
- Defined in:
- src/lib/y2network/presenters/config_summary.rb
Overview
This class is responsible of creating text summaries for the given Y2Network::Config.
Instance Attribute Summary collapse
- #config ⇒ Y2Network::Config readonly
Instance Method Summary collapse
-
#initialize(config) ⇒ ConfigSummary
constructor
Constructor.
-
#text ⇒ String
Network config RichText summary.
Constructor Details
#initialize(config) ⇒ ConfigSummary
Constructor
33 34 35 |
# File 'src/lib/y2network/presenters/config_summary.rb', line 33 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Y2Network::Config (readonly)
28 29 30 |
# File 'src/lib/y2network/presenters/config_summary.rb', line 28 def config @config end |
Instance Method Details
#text ⇒ String
Network config RichText summary
40 41 42 |
# File 'src/lib/y2network/presenters/config_summary.rb', line 40 def text "#{interfaces_summary.text}#{dns_summary.text}#{routing_summary.text}" end |