Class: Io::Flow::V0::Models::KubeHealthcheck
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::KubeHealthcheck
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ KubeHealthcheck
constructor
A new instance of KubeHealthcheck.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ KubeHealthcheck
Returns a new instance of KubeHealthcheck.
47923 47924 47925 47926 47927 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47923 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:status], 'KubeHealthcheck') @status = HttpClient::Preconditions.assert_class('status', opts.delete(:status), String) end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
47921 47922 47923 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47921 def status @status end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
47933 47934 47935 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47933 def copy(incoming={}) KubeHealthcheck.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
47937 47938 47939 47940 47941 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47937 def to_hash { :status => status } end |
#to_json ⇒ Object
47929 47930 47931 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47929 def to_json JSON.dump(to_hash) end |