Class: NetworkPolicy::NetworkPolicyPeer::PodSelectorNPP

Inherits:
NetworkPolicy::NetworkPolicyPeer show all
Defined in:
lib/xlsx_to_k8s_network_policy.rb

Overview

A {…} NetworkPolicyPeer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pod_selector) ⇒ PodSelectorNPP

Returns a new instance of PodSelectorNPP.



98
99
100
# File 'lib/xlsx_to_k8s_network_policy.rb', line 98

def initialize(pod_selector)
  @pod_selector = pod_selector
end

Instance Attribute Details

#pod_selectorObject (readonly)

Returns the value of attribute pod_selector.



97
98
99
# File 'lib/xlsx_to_k8s_network_policy.rb', line 97

def pod_selector
  @pod_selector
end

Instance Method Details

#==(other) ⇒ Object



102
103
104
# File 'lib/xlsx_to_k8s_network_policy.rb', line 102

def ==(other)
  other.class == self.class && other.pod_selector == pod_selector
end