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.
4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 |
# File 'lib/models/porcelain.rb', line 4616 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.
4610 4611 4612 |
# File 'lib/models/porcelain.rb', line 4610 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4614 4615 4616 |
# File 'lib/models/porcelain.rb', line 4614 def rate_limit @rate_limit end |
#role_attachment ⇒ Object
The requested RoleAttachment.
4612 4613 4614 |
# File 'lib/models/porcelain.rb', line 4612 def @role_attachment end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4632 4633 4634 4635 4636 4637 4638 |
# File 'lib/models/porcelain.rb', line 4632 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 |