class SDM::AccountAttachment
AccountAttachments assign an account to a role or composite role.
def initialize(
def initialize( id: nil, account_id: nil, role_id: nil ) if id != nil @id = id end if account_id != nil @account_id = account_id end if role_id != nil @role_id = role_id end end
def to_json(options = {})
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