ninech/netbox-client-ruby

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

Summary

Maintainability
A
15 mins
Test Coverage
# frozen_string_literal: true

module NetboxClientRuby
  module DCIM
    class Region
      include Entity

      id id: :id
      deletable true
      path 'dcim/regions/:id.json'
      creation_path 'dcim/regions/'
      object_fields parent: proc { |raw_data| Region.new raw_data['id'] }
    end
  end
end