Class: OsCtl::Cli::Top::Container::NetIf

Inherits:
Struct
  • Object
show all
Defined in:
lib/osctl/cli/top/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



3
4
5
# File 'lib/osctl/cli/top/container.rb', line 3

def name
  @name
end

#statsObject

Returns the value of attribute stats

Returns:

  • (Object)

    the current value of stats



3
4
5
# File 'lib/osctl/cli/top/container.rb', line 3

def stats
  @stats
end

#vethObject

Returns the value of attribute veth

Returns:

  • (Object)

    the current value of veth



3
4
5
# File 'lib/osctl/cli/top/container.rb', line 3

def veth
  @veth
end