class

Cl8r::Model::Rack

Inherits YAML::Serializable < Reference < Object

Models physical server rack elevations, total unit height (42U/48U), room location, and PDU feeds.

Constructors

new(name : String = "", height_u : Int32 = 42, location : String | Nil = nil, pdu_feeds : Array(String) = [] of String, pdus : Array(String) = [] of String, reservations : Array(RackReservation) = [] of RackReservation)

Initializes a Rack with elevation constraints, PDU feeds, and reserved bays.

Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

height_u
Source
height_u=(height_u : Int32)
Source
location
Source
location=(location : String | Nil)
Source
name
Source
name=(name : String)
Source
pdu_feeds
Source
pdu_feeds=(pdu_feeds : Array(String))
Source
pdus
Source
pdus=(pdus : Array(String))
Source
reservations
Source
reservations=(reservations : Array(RackReservation))
Source