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.
4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 |
# File 'lib/models/porcelain.rb', line 4042 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.
4036 4037 4038 |
# File 'lib/models/porcelain.rb', line 4036 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
4040 4041 4042 |
# File 'lib/models/porcelain.rb', line 4040 def rate_limit @rate_limit end |
#role_attachment ⇒ Object
The requested RoleAttachment.
4038 4039 4040 |
# File 'lib/models/porcelain.rb', line 4038 def @role_attachment end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4058 4059 4060 4061 4062 4063 4064 |
# File 'lib/models/porcelain.rb', line 4058 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 |