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.
15778 15779 15780 15781 15782 15783 15784 |
# File 'lib/models/porcelain.rb', line 15778 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.
15774 15775 15776 |
# File 'lib/models/porcelain.rb', line 15774 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
15776 15777 15778 |
# File 'lib/models/porcelain.rb', line 15776 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
15786 15787 15788 15789 15790 15791 15792 |
# File 'lib/models/porcelain.rb', line 15786 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 |