Class: SDM::RoleAttachmentGetResponse
- Inherits:
-
Object
- Object
- SDM::RoleAttachmentGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
RoleAttachmentGetResponse returns a requested RoleAttachment.
Deprecated: use multi-role via AccountAttachments instead.
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
4897 4898 4899 4900 4901 4902 4903 4904 4905 |
# File 'lib/models/porcelain.rb', line 4897 def initialize( meta: nil, rate_limit: nil, role_attachment: nil ) = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit = == nil ? nil : end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
4891 4892 4893 |
# File 'lib/models/porcelain.rb', line 4891 def end |
#rate_limit ⇒ Object
Rate limit information.
4893 4894 4895 |
# File 'lib/models/porcelain.rb', line 4893 def rate_limit @rate_limit end |
#role_attachment ⇒ Object
The requested RoleAttachment.
4895 4896 4897 |
# File 'lib/models/porcelain.rb', line 4895 def end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4907 4908 4909 4910 4911 4912 4913 |
# File 'lib/models/porcelain.rb', line 4907 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 |