Class: SDM::AccountAttachment
- Inherits:
-
Object
- Object
- SDM::AccountAttachment
- Defined in:
- lib/models/porcelain.rb
Overview
AccountAttachments assign an account to a role.
Instance Attribute Summary collapse
-
#account_id ⇒ Object
The id of the account of this AccountAttachment.
-
#id ⇒ Object
Unique identifier of the AccountAttachment.
-
#role_id ⇒ Object
The id of the attached role of this AccountAttachment.
Instance Method Summary collapse
-
#initialize(id: nil, account_id: nil, role_id: nil) ⇒ AccountAttachment
constructor
A new instance of AccountAttachment.
Constructor Details
#initialize(id: nil, account_id: nil, role_id: nil) ⇒ AccountAttachment
Returns a new instance of AccountAttachment.
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/models/porcelain.rb', line 171 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 |
Instance Attribute Details
#account_id ⇒ Object
The id of the account of this AccountAttachment.
168 169 170 |
# File 'lib/models/porcelain.rb', line 168 def account_id @account_id end |
#id ⇒ Object
Unique identifier of the AccountAttachment.
166 167 168 |
# File 'lib/models/porcelain.rb', line 166 def id @id end |
#role_id ⇒ Object
The id of the attached role of this AccountAttachment.
170 171 172 |
# File 'lib/models/porcelain.rb', line 170 def role_id @role_id end |