Class: OsCtl::Cli::Top::Container::NetIf
- Inherits:
-
Struct
- Object
- Struct
- OsCtl::Cli::Top::Container::NetIf
- Defined in:
- lib/osctl/cli/top/container.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#stats ⇒ Object
Returns the value of attribute stats.
-
#veth ⇒ Object
Returns the value of attribute veth.
Instance Method Summary collapse
-
#initialize(netif) ⇒ NetIf
constructor
A new instance of NetIf.
Constructor Details
#initialize(netif) ⇒ NetIf
Returns a new instance of NetIf.
4 5 6 7 |
# File 'lib/osctl/cli/top/container.rb', line 4 def initialize(netif) self.name = netif[:name] self.veth = netif[:veth] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/osctl/cli/top/container.rb', line 3 def name @name end |
#stats ⇒ Object
Returns the value of attribute stats
3 4 5 |
# File 'lib/osctl/cli/top/container.rb', line 3 def stats @stats end |
#veth ⇒ Object
Returns the value of attribute veth
3 4 5 |
# File 'lib/osctl/cli/top/container.rb', line 3 def veth @veth end |