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.



1594
1595
1596
1597
1598
# File 'lib/models/porcelain.rb', line 1594

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

Instance Attribute Details

#account_groupObject

Parameters to define the new AccountGroup.



1592
1593
1594
# File 'lib/models/porcelain.rb', line 1592

def 
  @account_group
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1600
1601
1602
1603
1604
1605
1606
# File 'lib/models/porcelain.rb', line 1600

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