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.
5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 |
# File 'lib/models/porcelain.rb', line 5007 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.
5001 5002 5003 |
# File 'lib/models/porcelain.rb', line 5001 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
5005 5006 5007 |
# File 'lib/models/porcelain.rb', line 5005 def rate_limit @rate_limit end |
#role_attachment ⇒ Object
The requested RoleAttachment.
5003 5004 5005 |
# File 'lib/models/porcelain.rb', line 5003 def @role_attachment end |
Instance Method Details
#to_json(options = {}) ⇒ Object
5023 5024 5025 5026 5027 5028 5029 |
# File 'lib/models/porcelain.rb', line 5023 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 |