Class: SDM::IdentityAlias
- Inherits:
-
Object
- Object
- SDM::IdentityAlias
- Defined in:
- lib/models/porcelain.rb
Overview
IdentityAliases define the username to be used for a specific account when connecting to a remote resource using that identity set.
Instance Attribute Summary collapse
-
#account_id ⇒ Object
The account for this identity alias.
-
#id ⇒ Object
Unique identifier of the IdentityAlias.
-
#identity_set_id ⇒ Object
The identity set.
-
#username ⇒ Object
The username to be used as the identity alias for this account.
Instance Method Summary collapse
-
#initialize(account_id: nil, id: nil, identity_set_id: nil, username: nil) ⇒ IdentityAlias
constructor
A new instance of IdentityAlias.
- #to_json(options = {}) ⇒ Object
Constructor Details
permalink #initialize(account_id: nil, id: nil, identity_set_id: nil, username: nil) ⇒ IdentityAlias
Returns a new instance of IdentityAlias.
6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 |
# File 'lib/models/porcelain.rb', line 6417 def initialize( account_id: nil, id: nil, identity_set_id: nil, username: nil ) @account_id = account_id == nil ? "" : account_id @id = id == nil ? "" : id @identity_set_id = identity_set_id == nil ? "" : identity_set_id @username = username == nil ? "" : username end |
Instance Attribute Details
permalink #account_id ⇒ Object
The account for this identity alias.
6409 6410 6411 |
# File 'lib/models/porcelain.rb', line 6409 def account_id @account_id end |
permalink #id ⇒ Object
Unique identifier of the IdentityAlias.
6411 6412 6413 |
# File 'lib/models/porcelain.rb', line 6411 def id @id end |
permalink #identity_set_id ⇒ Object
The identity set.
6413 6414 6415 |
# File 'lib/models/porcelain.rb', line 6413 def identity_set_id @identity_set_id end |
permalink #username ⇒ Object
The username to be used as the identity alias for this account.
6415 6416 6417 |
# File 'lib/models/porcelain.rb', line 6415 def username @username end |
Instance Method Details
permalink #to_json(options = {}) ⇒ Object
[View source]
6429 6430 6431 6432 6433 6434 6435 |
# File 'lib/models/porcelain.rb', line 6429 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |