Class: SDM::RoleAttachmentCreateResponse

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

Overview

RoleAttachmentCreateResponse reports how the RoleAttachments were created in the system.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RoleAttachmentCreateResponse.



5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
# File 'lib/models/porcelain.rb', line 5491

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

Instance Attribute Details

#metaObject

Reserved for future use.



5485
5486
5487
# File 'lib/models/porcelain.rb', line 5485

def meta
  @meta
end

#rate_limitObject

Rate limit information.



5487
5488
5489
# File 'lib/models/porcelain.rb', line 5487

def rate_limit
  @rate_limit
end

#role_attachmentObject

The created RoleAttachment.



5489
5490
5491
# File 'lib/models/porcelain.rb', line 5489

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5507
5508
5509
5510
5511
5512
5513
# File 'lib/models/porcelain.rb', line 5507

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