Class: SDM::PolicyDeleteResponse
- Inherits:
-
Object
- Object
- SDM::PolicyDeleteResponse
- Defined in:
- lib/models/porcelain.rb
Overview
PolicyDeleteResponse returns information about a Policy that was deleted.
Instance Attribute Summary collapse
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(rate_limit: nil) ⇒ PolicyDeleteResponse
constructor
A new instance of PolicyDeleteResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(rate_limit: nil) ⇒ PolicyDeleteResponse
Returns a new instance of PolicyDeleteResponse.
8825 8826 8827 8828 8829 |
# File 'lib/models/porcelain.rb', line 8825 def initialize( rate_limit: nil ) @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#rate_limit ⇒ Object
Rate limit information.
8823 8824 8825 |
# File 'lib/models/porcelain.rb', line 8823 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8831 8832 8833 8834 8835 8836 8837 |
# File 'lib/models/porcelain.rb', line 8831 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 |