Class: SDM::AccountAttachment

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

AccountAttachments assign an account to a role.

Instance Attribute Summary collapse

Instance Method Summary collapse

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  != nil
		@account_id = 
	end
	if role_id != nil
		@role_id = role_id
	end
end

Instance Attribute Details

#account_idObject

The id of the account of this AccountAttachment.



168
169
170
# File 'lib/models/porcelain.rb', line 168

def 
  @account_id
end

#idObject

Unique identifier of the AccountAttachment.



166
167
168
# File 'lib/models/porcelain.rb', line 166

def id
  @id
end

#role_idObject

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