class HyperDock::Resource::Networks
Public Instance Methods
attributes()
click to toggle source
# File lib/hyperdock/resource/networks.rb, line 17 def attributes { networks: networks } end
links()
click to toggle source
# File lib/hyperdock/resource/networks.rb, line 11 def links @links ||= networks.map do |network| { "network:#{network}" => { href: "/network/#{network}" } } end.reduce(&:merge) end
networks()
click to toggle source
# File lib/hyperdock/resource/networks.rb, line 7 def networks @networks ||= ::Docker::Network.all.map(&:id) end