Class: Avmtrf1::Openvpn::Config::Parser::Simple

Inherits:
Object
  • Object
show all
Defined in:
lib/avmtrf1/openvpn/config/parser/simple.rb

Instance Method Summary collapse

Instance Method Details

#argsObject


20
21
22
# File 'lib/avmtrf1/openvpn/config/parser/simple.rb', line 20

def args
  parts[1..-1]
end

#attributeObject


16
17
18
# File 'lib/avmtrf1/openvpn/config/parser/simple.rb', line 16

def attribute
  parts.first
end

#dataObject


12
13
14
# File 'lib/avmtrf1/openvpn/config/parser/simple.rb', line 12

def data
  { attribute: attribute, args: args }
end