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.



5413
5414
5415
5416
5417
5418
5419
5420
5421
# File 'lib/models/porcelain.rb', line 5413

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.



5407
5408
5409
# File 'lib/models/porcelain.rb', line 5407

def meta
  @meta
end

#rate_limitObject

Rate limit information.



5409
5410
5411
# File 'lib/models/porcelain.rb', line 5409

def rate_limit
  @rate_limit
end

#role_attachmentObject

The requested RoleAttachment.



5411
5412
5413
# File 'lib/models/porcelain.rb', line 5411

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5423
5424
5425
5426
5427
5428
5429
# File 'lib/models/porcelain.rb', line 5423

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