Class: Io::Flow::V0::Models::KubeHealthcheck

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#statusObject (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_hashObject



47937
47938
47939
47940
47941
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47937

def to_hash
  {
    :status => status
  }
end

#to_jsonObject



47929
47930
47931
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 47929

def to_json
  JSON.dump(to_hash)
end