Sha256: 7f50b2f7701032181015cf9686f51ecca70c7f447521f4d5cf7ec4b3f9741a05
Contents?: true
Size: 636 Bytes
Versions: 4
Compression:
Stored size: 636 Bytes
Contents
require 'netbox_client_ruby/entity' require 'netbox_client_ruby/api/dcim/manufacturer' module NetboxClientRuby class InterfaceOrdering attr_reader :value, :label def initialize(raw_data) @value = raw_data['value'] @label = raw_data['label'] end end class DeviceType include NetboxClientRuby::Entity id id: :id deletable true path 'dcim/device-types/:id.json' creation_path 'dcim/device-types/' object_fields( manufacturer: proc { |raw_data| NetboxClientRuby::Manufacturer.new raw_data['id'] }, interface_ordering: NetboxClientRuby::InterfaceOrdering ) end end
Version data entries
4 entries across 4 versions & 1 rubygems