Class: Vedeu::HashParser
- Inherits:
-
Object
- Object
- Vedeu::HashParser
- Defined in:
- lib/vedeu/parsing/hash_parser.rb
Class Method Summary collapse
-
.parse(output = {}) ⇒ Hash
Convert a hash into a collection of interfaces.
Instance Method Summary collapse
-
#initialize(output = {}) ⇒ HashParser
constructor
A new instance of HashParser.
- #parse ⇒ Object
Constructor Details
#initialize(output = {}) ⇒ HashParser
Returns a new instance of HashParser.
43 44 45 |
# File 'lib/vedeu/parsing/hash_parser.rb', line 43 def initialize(output = {}) @output = output end |
Class Method Details
.parse(output = {}) ⇒ Hash
Convert a hash into a collection of interfaces.
39 40 41 |
# File 'lib/vedeu/parsing/hash_parser.rb', line 39 def self.parse(output = {}) new(output).parse end |
Instance Method Details
#parse ⇒ Object
47 48 49 |
# File 'lib/vedeu/parsing/hash_parser.rb', line 47 def parse { interfaces: interfaces } end |