Sha256: 5fbcd4997f76a4ccb623612c412948e9e15576cab30bac46e5e71d9112f3cd98

Contents?: true

Size: 444 Bytes

Versions: 15

Compression:

Stored size: 444 Bytes

Contents

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/manufacturer'

module NetboxClientRuby
  module DCIM
    class Platform
      include Entity

      id id: :id
      deletable true
      path 'dcim/platforms/:id.json'
      creation_path 'dcim/platforms/'
      object_fields(
        manufacturer: proc do |raw_manufacturer|
          DCIM::Manufacturer.new raw_manufacturer['id']
        end
      )
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
netbox-client-ruby-0.10.1 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.10.0 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.9.0 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.8.0 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.7.1 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.7.0 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.6.0 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.5.7 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.5.6 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.5.5 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.5.4 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.5.3 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.5.2 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.5.1 lib/netbox_client_ruby/api/dcim/platform.rb
netbox-client-ruby-0.5.0 lib/netbox_client_ruby/api/dcim/platform.rb