Class: SDM::HealthcheckResponse
- Inherits:
-
Object
- Object
- SDM::HealthcheckResponse
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#rate_limit ⇒ Object
Rate limit information.
-
#status ⇒ Object
Array of statuses of all nodes serving a secret engine.
Instance Method Summary collapse
-
#initialize(rate_limit: nil, status: nil) ⇒ HealthcheckResponse
constructor
A new instance of HealthcheckResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(rate_limit: nil, status: nil) ⇒ HealthcheckResponse
8067 8068 8069 8070 8071 8072 8073 |
# File 'lib/models/porcelain.rb', line 8067 def initialize( rate_limit: nil, status: nil ) @rate_limit = rate_limit == nil ? nil : rate_limit @status = status == nil ? [] : status end |
Instance Attribute Details
#rate_limit ⇒ Object
Rate limit information.
8063 8064 8065 |
# File 'lib/models/porcelain.rb', line 8063 def rate_limit @rate_limit end |
#status ⇒ Object
Array of statuses of all nodes serving a secret engine
8065 8066 8067 |
# File 'lib/models/porcelain.rb', line 8065 def status @status end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8075 8076 8077 8078 8079 8080 8081 |
# File 'lib/models/porcelain.rb', line 8075 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |