ninech/netbox-client-ruby

View on GitHub
lib/netbox_client_ruby/api/tenancy/tenant.rb

Summary

Maintainability
A
15 mins
Test Coverage
# frozen_string_literal: true

module NetboxClientRuby
  module Tenancy
    class Tenant
      include Entity

      id id: :id
      deletable true
      path 'tenancy/tenants/:id.json'
      creation_path 'tenancy/tenants/'
      object_fields group: proc { |raw_data| TenantGroup.new raw_data['id'] }
    end
  end
end