Class: SDM::SecretStoreHealthcheckResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rate_limit: nil) ⇒ SecretStoreHealthcheckResponse

Returns a new instance of SecretStoreHealthcheckResponse.



11699
11700
11701
11702
11703
# File 'lib/models/porcelain.rb', line 11699

def initialize(
  rate_limit: nil
)
  @rate_limit = rate_limit == nil ? nil : rate_limit
end

Instance Attribute Details

#rate_limitObject

Rate limit information.



11697
11698
11699
# File 'lib/models/porcelain.rb', line 11697

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



11705
11706
11707
11708
11709
11710
11711
# File 'lib/models/porcelain.rb', line 11705

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end