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, role_attachment: nil, rate_limit: nil) ⇒ RoleAttachmentCreateResponse

Returns a new instance of RoleAttachmentCreateResponse.



4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
# File 'lib/models/porcelain.rb', line 4582

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

Instance Attribute Details

#metaObject

Reserved for future use.



4576
4577
4578
# File 'lib/models/porcelain.rb', line 4576

def meta
  @meta
end

#rate_limitObject

Rate limit information.



4580
4581
4582
# File 'lib/models/porcelain.rb', line 4580

def rate_limit
  @rate_limit
end

#role_attachmentObject

The created RoleAttachment.



4578
4579
4580
# File 'lib/models/porcelain.rb', line 4578

def role_attachment
  @role_attachment
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4598
4599
4600
4601
4602
4603
4604
# File 'lib/models/porcelain.rb', line 4598

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