Sha256: fb86a2fd2840db8060ac7e97a2337bf0cfd5c0ea316e8d0441cd051d85d2e21e

Contents?: true

Size: 297 Bytes

Versions: 4

Compression:

Stored size: 297 Bytes

Contents

require 'netbox_client_ruby/entity'

module NetboxClientRuby
  class Region
    include NetboxClientRuby::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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
netbox-client-ruby-0.0.4 lib/netbox_client_ruby/api/dcim/region.rb
netbox-client-ruby-0.0.3 lib/netbox_client_ruby/api/dcim/region.rb
netbox-client-ruby-0.0.2 lib/netbox_client_ruby/api/dcim/region.rb
netbox-client-ruby-0.0.1 lib/netbox_client_ruby/api/dcim/region.rb