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, rate_limit: nil, role_attachment: nil) ⇒ RoleAttachmentGetResponse
constructor
A new instance of RoleAttachmentGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil, role_attachment: nil) ⇒ RoleAttachmentGetResponse
Returns a new instance of RoleAttachmentGetResponse.
5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 |
# File 'lib/models/porcelain.rb', line 5553 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.
5547 5548 5549 |
# File 'lib/models/porcelain.rb', line 5547 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5549 5550 5551 |
# File 'lib/models/porcelain.rb', line 5549 def rate_limit @rate_limit end |
#role_attachment ⇒ Object
The requested RoleAttachment.
5551 5552 5553 |
# File 'lib/models/porcelain.rb', line 5551 def @role_attachment end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5569 5570 5571 5572 5573 5574 5575 |
# File 'lib/models/porcelain.rb', line 5569 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 |