class SDM::AccountAttachment
AccountAttachments
assign an account to a role or composite role.
Attributes
account_id[RW]
The id of the account of this AccountAttachment
.
id[RW]
Unique identifier of the AccountAttachment
.
role_id[RW]
The id of the attached role of this AccountAttachment
.
Public Class Methods
new( id:nil \ , account_id:nil \ , role_id:nil \ )
click to toggle source
# File lib/models/porcelain.rb, line 214 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
Public Instance Methods
to_json(options={})
click to toggle source
# File lib/models/porcelain.rb, line 231 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