Class: SDM::AccountGroupGetRequest
- Inherits:
-
Object
- Object
- SDM::AccountGroupGetRequest
- Defined in:
- lib/models/porcelain.rb
Overview
AccountGroupGetRequest specifies which AccountGroup to retrieve.
Instance Attribute Summary collapse
-
#id ⇒ Object
The unique identifier of the AccountGroup to retrieve.
Instance Method Summary collapse
-
#initialize(id: nil) ⇒ AccountGroupGetRequest
constructor
A new instance of AccountGroupGetRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil) ⇒ AccountGroupGetRequest
Returns a new instance of AccountGroupGetRequest.
1674 1675 1676 1677 1678 |
# File 'lib/models/porcelain.rb', line 1674 def initialize( id: nil ) @id = id == nil ? "" : id end |
Instance Attribute Details
#id ⇒ Object
The unique identifier of the AccountGroup to retrieve.
1672 1673 1674 |
# File 'lib/models/porcelain.rb', line 1672 def id @id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1680 1681 1682 1683 1684 1685 1686 |
# File 'lib/models/porcelain.rb', line 1680 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 |