Class: Kubernetes::ReplicationController
- Inherits:
-
Object
- Object
- Kubernetes::ReplicationController
- Defined in:
- lib/kubernetes/replication_controller.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(data) ⇒ ReplicationController
constructor
A new instance of ReplicationController.
Constructor Details
#initialize(data) ⇒ ReplicationController
Returns a new instance of ReplicationController.
9 10 11 12 13 |
# File 'lib/kubernetes/replication_controller.rb', line 9 def initialize(data) @metadata = Metadata.new(data.fetch("metadata")) @spec = ReplicationControllerSpec.new(data.fetch("spec")) @status = ReplicationControllerStatus.new(data.fetch("status")) end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/kubernetes/replication_controller.rb', line 7 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
7 8 9 |
# File 'lib/kubernetes/replication_controller.rb', line 7 def spec @spec end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/kubernetes/replication_controller.rb', line 7 def status @status end |
Instance Method Details
#==(other) ⇒ Object
15 16 17 |
# File 'lib/kubernetes/replication_controller.rb', line 15 def ==(other) .uid == other..uid end |