Class: SDM::RoleAttachmentGetResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

RoleAttachmentGetResponse returns a requested RoleAttachment.

Deprecated: use multi-role via AccountAttachments instead.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, rate_limit: nil, role_attachment: nil) ⇒ RoleAttachmentGetResponse

Returns a new instance of RoleAttachmentGetResponse.



5171
5172
5173
5174
5175
5176
5177
5178
5179
# File 'lib/models/porcelain.rb', line 5171

def initialize(
  meta: nil,
  rate_limit: nil,
  role_attachment: nil
)
  @meta = meta == nil ? nil : meta
  @rate_limit = rate_limit == nil ? nil : rate_limit
  @role_attachment = role_attachment == nil ? nil : role_attachment
end

Instance Attribute Details

#metaObject

Reserved for future use.



5165
5166
5167
# File 'lib/models/porcelain.rb', line 5165

def meta
  @meta
end

#rate_limitObject

Rate limit information.



5167
5168
5169
# File 'lib/models/porcelain.rb', line 5167

def rate_limit
  @rate_limit
end

#role_attachmentObject

The requested RoleAttachment.



5169
5170
5171
# File 'lib/models/porcelain.rb', line 5169

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5181
5182
5183
5184
5185
5186
5187
# File 'lib/models/porcelain.rb', line 5181

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end