Class: HCloud::ApplyTo
- Inherits:
-
Entity
- Object
- Entity
- HCloud::ApplyTo
- Defined in:
- lib/hcloud/entities/apply_to.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
10 11 12 13 |
# File 'lib/hcloud/entities/apply_to.rb', line 10 def to_h # Omit `label_selector` if type is `server` and vice versa super.except(type == "server" ? "label_selector" : "server") end |