Class: SDM::RoleDeleteResponse
- Inherits:
-
Object
- Object
- SDM::RoleDeleteResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleDeleteResponse returns information about a Role that was deleted.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(meta: nil, rate_limit: nil) ⇒ RoleDeleteResponse
constructor
A new instance of RoleDeleteResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil) ⇒ RoleDeleteResponse
Returns a new instance of RoleDeleteResponse.
5728 5729 5730 5731 5732 5733 5734 |
# File 'lib/models/porcelain.rb', line 5728 def initialize( meta: nil, rate_limit: nil ) @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
5724 5725 5726 |
# File 'lib/models/porcelain.rb', line 5724 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5726 5727 5728 |
# File 'lib/models/porcelain.rb', line 5726 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5736 5737 5738 5739 5740 5741 5742 |
# File 'lib/models/porcelain.rb', line 5736 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 |