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.



1996
1997
1998
1999
2000
# File 'lib/models/porcelain.rb', line 1996

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

Instance Attribute Details

#idObject

The unique identifier of the AccountGroup to retrieve.



1994
1995
1996
# File 'lib/models/porcelain.rb', line 1994

def id
  @id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2002
2003
2004
2005
2006
2007
2008
# File 'lib/models/porcelain.rb', line 2002

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