Class: Yast::PortAliasesClass::Service

Inherits:
Struct
  • Object
show all
Defined in:
library/network/src/modules/PortAliases.rb

Overview

Internal representation of a service

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aliasesObject

Returns the value of attribute aliases

Returns:

  • (Object)

    the current value of aliases


27
28
29
# File 'library/network/src/modules/PortAliases.rb', line 27

def aliases
  @aliases
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port


27
28
29
# File 'library/network/src/modules/PortAliases.rb', line 27

def port
  @port
end

Instance Method Details

#to_aObject


28
29
30
# File 'library/network/src/modules/PortAliases.rb', line 28

def to_a
  [port, aliases].flatten.map(&:to_s)
end