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( attached_role_id:nil \ , composite_role_id:nil \ , id:nil \ ) click to toggle source
# File lib/models/porcelain.rb, line 6414
                def initialize(
                        attached_role_id:nil \
,
                        composite_role_id:nil \
,
                        id:nil \
                )
                        if attached_role_id != nil
                                @attached_role_id = attached_role_id
                        end
                        if composite_role_id != nil
                                @composite_role_id = composite_role_id
                        end
                        if id != nil
                                @id = id
                        end
                end

Public Instance Methods

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