class SDM::RoleAttachment

A RoleAttachment assigns a role to a composite role.

Attributes

attached_role_id[RW]

The id of the attached role of this RoleAttachment.

composite_role_id[RW]

The id of the composite role of this RoleAttachment.

id[RW]

Unique identifier of the RoleAttachment.

Public Class Methods

new( id: nil, composite_role_id: nil, attached_role_id: nil ) click to toggle source
# File lib/models/porcelain.rb, line 6406
def initialize(
  id: nil,
  composite_role_id: nil,
  attached_role_id: nil
)
  if id != nil
    @id = id
  end
  if composite_role_id != nil
    @composite_role_id = composite_role_id
  end
  if attached_role_id != nil
    @attached_role_id = attached_role_id
  end
end

Public Instance Methods

to_json(options = {}) click to toggle source
# File lib/models/porcelain.rb, line 6422
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