Class: NetworkPolicy::NetworkPolicyPeer::PodSelectorNPP
- Inherits:
-
NetworkPolicy::NetworkPolicyPeer
- Object
- NetworkPolicy::NetworkPolicyPeer
- NetworkPolicy::NetworkPolicyPeer::PodSelectorNPP
- Defined in:
- lib/xlsx_to_k8s_network_policy.rb
Overview
A {…} NetworkPolicyPeer
Instance Attribute Summary collapse
-
#pod_selector ⇒ Object
readonly
Returns the value of attribute pod_selector.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(pod_selector) ⇒ PodSelectorNPP
constructor
A new instance of PodSelectorNPP.
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_selector ⇒ Object (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 |