Class: SDM::AccountGroupGetRequest

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

Overview

AccountGroupGetRequest specifies which AccountGroup to retrieve.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil) ⇒ AccountGroupGetRequest

Returns a new instance of AccountGroupGetRequest.



1735
1736
1737
1738
1739
# File 'lib/models/porcelain.rb', line 1735

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

Instance Attribute Details

#idObject

The unique identifier of the AccountGroup to retrieve.



1733
1734
1735
# File 'lib/models/porcelain.rb', line 1733

def id
  @id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1741
1742
1743
1744
1745
1746
1747
# File 'lib/models/porcelain.rb', line 1741

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