Class: SDM::AccountGroupCreateRequest

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

Overview

AccountGroupCreateRequest specifies an AccountGroup to create.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_group: nil) ⇒ AccountGroupCreateRequest

Returns a new instance of AccountGroupCreateRequest.



1908
1909
1910
1911
1912
# File 'lib/models/porcelain.rb', line 1908

def initialize(
  account_group: nil
)
  @account_group =  == nil ? nil : 
end

Instance Attribute Details

#account_groupObject

Parameters to define the new AccountGroup.



1906
1907
1908
# File 'lib/models/porcelain.rb', line 1906

def 
  @account_group
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1914
1915
1916
1917
1918
1919
1920
# File 'lib/models/porcelain.rb', line 1914

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