Class: Yast::PortAliasesClass::Service
- Inherits:
-
Struct
- Object
- Struct
- Yast::PortAliasesClass::Service
- Defined in:
- library/network/src/modules/PortAliases.rb
Overview
Internal representation of a service
Instance Attribute Summary collapse
-
#aliases ⇒ Object
Returns the value of attribute aliases.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
Instance Attribute Details
#aliases ⇒ Object
Returns the value of attribute aliases
27 28 29 |
# File 'library/network/src/modules/PortAliases.rb', line 27 def aliases @aliases end |
#port ⇒ Object
Returns the value of attribute port
27 28 29 |
# File 'library/network/src/modules/PortAliases.rb', line 27 def port @port end |
Instance Method Details
#to_a ⇒ Object
28 29 30 |
# File 'library/network/src/modules/PortAliases.rb', line 28 def to_a [port, aliases].flatten.map(&:to_s) end |