Class: Vedeu::RawParser

Inherits:
Object
  • Object
show all
Defined in:
lib/vedeu/parsing/raw_parser.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ RawParser

Returns a new instance of RawParser.



9
10
11
# File 'lib/vedeu/parsing/raw_parser.rb', line 9

def initialize(attributes)
  @attributes = attributes
end

Class Method Details

.parse(attributes) ⇒ Object



5
6
7
# File 'lib/vedeu/parsing/raw_parser.rb', line 5

def self.parse(attributes)
  new(attributes).parse
end

Instance Method Details

#parseObject



13
14
15
# File 'lib/vedeu/parsing/raw_parser.rb', line 13

def parse
  { interfaces: interfaces }
end