Class: SDM::RoleAttachmentCreateResponse
- Inherits:
-
Object
- Object
- SDM::RoleAttachmentCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleAttachmentCreateResponse reports how the RoleAttachments were created in the system.
Deprecated: use multi-role via AccountAttachments instead.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#role_attachment ⇒ Object
The created RoleAttachment.
Instance Method Summary collapse
-
#initialize(meta: nil, rate_limit: nil, role_attachment: nil) ⇒ RoleAttachmentCreateResponse
constructor
A new instance of RoleAttachmentCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, role_attachment: nil) ⇒ RoleAttachmentCreateResponse
Returns a new instance of RoleAttachmentCreateResponse.
4841 4842 4843 4844 4845 4846 4847 4848 4849 |
# File 'lib/models/porcelain.rb', line 4841 def initialize( meta: nil, rate_limit: nil, role_attachment: nil ) @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit @role_attachment = == nil ? nil : end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
4835 4836 4837 |
# File 'lib/models/porcelain.rb', line 4835 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4837 4838 4839 |
# File 'lib/models/porcelain.rb', line 4837 def rate_limit @rate_limit end |
#role_attachment ⇒ Object
The created RoleAttachment.
4839 4840 4841 |
# File 'lib/models/porcelain.rb', line 4839 def @role_attachment end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4851 4852 4853 4854 4855 4856 4857 |
# File 'lib/models/porcelain.rb', line 4851 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 |