Class: Vedeu::MenuParser
- Inherits:
-
Object
- Object
- Vedeu::MenuParser
- Defined in:
- lib/vedeu/parsing/menu_parser.rb
Class Method Summary collapse
-
.parse(output = {}) ⇒ Hash
Convert a Vedeu::Menu into an interface view.
Instance Method Summary collapse
-
#initialize(output = {}) ⇒ MenuParser
constructor
A new instance of MenuParser.
- #parse ⇒ Object
Constructor Details
#initialize(output = {}) ⇒ MenuParser
Returns a new instance of MenuParser.
12 13 14 |
# File 'lib/vedeu/parsing/menu_parser.rb', line 12 def initialize(output = {}) @output = output end |
Class Method Details
.parse(output = {}) ⇒ Hash
Convert a Vedeu::Menu into an interface view.
8 9 10 |
# File 'lib/vedeu/parsing/menu_parser.rb', line 8 def self.parse(output = {}) new(output).parse end |
Instance Method Details
#parse ⇒ Object
16 17 18 |
# File 'lib/vedeu/parsing/menu_parser.rb', line 16 def parse { interfaces: interface } end |