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.
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, role_attachment: nil, rate_limit: nil) ⇒ RoleAttachmentCreateResponse
constructor
A new instance of RoleAttachmentCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, role_attachment: nil, rate_limit: nil) ⇒ RoleAttachmentCreateResponse
Returns a new instance of RoleAttachmentCreateResponse.
4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 |
# File 'lib/models/porcelain.rb', line 4014 def initialize( meta: nil, role_attachment: nil, rate_limit: nil ) if != nil @meta = end if != nil @role_attachment = end if rate_limit != nil @rate_limit = rate_limit end end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
4008 4009 4010 |
# File 'lib/models/porcelain.rb', line 4008 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4012 4013 4014 |
# File 'lib/models/porcelain.rb', line 4012 def rate_limit @rate_limit end |
#role_attachment ⇒ Object
The created RoleAttachment.
4010 4011 4012 |
# File 'lib/models/porcelain.rb', line 4010 def @role_attachment end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4030 4031 4032 4033 4034 4035 4036 |
# File 'lib/models/porcelain.rb', line 4030 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 |