ninech/netbox-client-ruby

View on GitHub
lib/netbox_client_ruby/api/ipam/vlan_group.rb

Summary

Maintainability
A
15 mins
Test Coverage
# frozen_string_literal: true

module NetboxClientRuby
  module IPAM
    class VlanGroup
      include Entity

      id id: :id
      deletable true
      path 'ipam/vlan-groups/:id.json'
      creation_path 'ipam/vlan-groups/'
      object_fields site: proc { |raw_data| DCIM::Site.new raw_data['id'] }
    end
  end
end