ninech/netbox-client-ruby

View on GitHub
lib/netbox_client_ruby/api/dcim/virtual_chassis.rb

Summary

Maintainability
A
15 mins
Test Coverage
# frozen_string_literal: true

module NetboxClientRuby
  module DCIM
    class VirtualChassis
      include Entity

      id id: :id
      deletable true
      path 'dcim/virtual-chassis/:id.json'
      creation_path 'dcim/virtual-chassis/'

      object_fields(
        master: proc { |raw_data| Device.new raw_data['id'] },
      )
    end
  end
end