Class: Pangea::Kubernetes::Architecture::HcloudNetworkResult

Inherits:
Contracts::NetworkResult
  • Object
show all
Defined in:
lib/pangea/kubernetes/architecture.rb

Overview

Hetzner Cloud-specific NetworkResult with network (not VPC)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#networkObject

Returns the value of attribute network.



212
213
214
# File 'lib/pangea/kubernetes/architecture.rb', line 212

def network
  @network
end

Instance Method Details

#[](key) ⇒ Object



214
215
216
217
218
219
# File 'lib/pangea/kubernetes/architecture.rb', line 214

def [](key)
  case key.to_sym
  when :network then network
  else super
  end
end

#to_hObject



221
222
223
224
225
# File 'lib/pangea/kubernetes/architecture.rb', line 221

def to_h
  hash = super
  hash[:network] = network if network
  hash
end