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



1981
1982
1983
1984
1985
# File 'lib/models/porcelain.rb', line 1981

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

Instance Attribute Details

#idObject

The unique identifier of the AccountGroup to retrieve.



1979
1980
1981
# File 'lib/models/porcelain.rb', line 1979

def id
  @id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1987
1988
1989
1990
1991
1992
1993
# File 'lib/models/porcelain.rb', line 1987

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