Sha256: 3bf84cf72a8faa3d74aa69a09455898a35eca02c56fc60fbf239d049406484d9
Contents?: true
Size: 505 Bytes
Versions: 31
Compression:
Stored size: 505 Bytes
Contents
require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/device' require 'netbox_client_ruby/api/dcim/power_port' module NetboxClientRuby module DCIM class PowerOutlet include Entity id id: :id deletable true path 'dcim/power-outlets/:id.json' creation_path 'dcim/power-outlets/' object_fields device: proc { |raw_data| Device.new raw_data['id'] } object_fields connected_port: proc { |raw_data| PowerPort.new raw_data } end end end
Version data entries
31 entries across 31 versions & 1 rubygems