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, 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.
5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 |
# File 'lib/models/porcelain.rb', line 5491 def initialize( meta: nil, rate_limit: nil, role_attachment: nil ) if != nil @meta = end if rate_limit != nil @rate_limit = rate_limit end if != nil @role_attachment = end end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
5485 5486 5487 |
# File 'lib/models/porcelain.rb', line 5485 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5487 5488 5489 |
# File 'lib/models/porcelain.rb', line 5487 def rate_limit @rate_limit end |
#role_attachment ⇒ Object
The created RoleAttachment.
5489 5490 5491 |
# File 'lib/models/porcelain.rb', line 5489 def @role_attachment end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5507 5508 5509 5510 5511 5512 5513 |
# File 'lib/models/porcelain.rb', line 5507 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 |