Class: HCloud::ApplyTo

Inherits:
Entity
  • Object
show all
Defined in:
lib/hcloud/entities/apply_to.rb

Direct Known Subclasses

AppliedTo

Instance Method Summary collapse

Instance Method Details

#to_hObject



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