Class: SDM::RemoteIdentityGroup

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

Overview

A RemoteIdentityGroup defines a group of remote identities.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil) ⇒ RemoteIdentityGroup

Returns a new instance of RemoteIdentityGroup.



15760
15761
15762
15763
15764
15765
15766
# File 'lib/models/porcelain.rb', line 15760

def initialize(
  id: nil,
  name: nil
)
  @id = id == nil ? "" : id
  @name = name == nil ? "" : name
end

Instance Attribute Details

#id ⇒ Object

Unique identifier of the RemoteIdentityGroup.



15756
15757
15758
# File 'lib/models/porcelain.rb', line 15756

def id
  @id
end

#name ⇒ Object

Unique human-readable name of the RemoteIdentityGroup.



15758
15759
15760
# File 'lib/models/porcelain.rb', line 15758

def name
  @name
end

Instance Method Details

#to_json(options = {}) ⇒ Object



15768
15769
15770
15771
15772
15773
15774
# File 'lib/models/porcelain.rb', line 15768

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