Class: SDM::RoleAttachmentGetResponse
- Inherits:
-
Object
- Object
- SDM::RoleAttachmentGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleAttachmentGetResponse returns a requested RoleAttachment.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#role_attachment ⇒ Object
The requested RoleAttachment.
Instance Method Summary collapse
-
#initialize(meta: nil, role_attachment: nil, rate_limit: nil) ⇒ RoleAttachmentGetResponse
constructor
A new instance of RoleAttachmentGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, role_attachment: nil, rate_limit: nil) ⇒ RoleAttachmentGetResponse
Returns a new instance of RoleAttachmentGetResponse.
4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 |
# File 'lib/models/porcelain.rb', line 4587 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.
4582 4583 4584 |
# File 'lib/models/porcelain.rb', line 4582 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4586 4587 4588 |
# File 'lib/models/porcelain.rb', line 4586 def rate_limit @rate_limit end |
#role_attachment ⇒ Object
The requested RoleAttachment.
4584 4585 4586 |
# File 'lib/models/porcelain.rb', line 4584 def @role_attachment end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4604 4605 4606 4607 4608 4609 4610 |
# File 'lib/models/porcelain.rb', line 4604 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 |