Class: SDM::AccountGroupCreateRequest
- Inherits:
-
Object
- Object
- SDM::AccountGroupCreateRequest
- Defined in:
- lib/models/porcelain.rb
Overview
AccountGroupCreateRequest specifies an AccountGroup to create.
Instance Attribute Summary collapse
-
#account_group ⇒ Object
Parameters to define the new AccountGroup.
Instance Method Summary collapse
-
#initialize(account_group: nil) ⇒ AccountGroupCreateRequest
constructor
A new instance of AccountGroupCreateRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(account_group: nil) ⇒ AccountGroupCreateRequest
Returns a new instance of AccountGroupCreateRequest.
1647 1648 1649 1650 1651 |
# File 'lib/models/porcelain.rb', line 1647 def initialize( account_group: nil ) @account_group = account_group == nil ? nil : account_group end |
Instance Attribute Details
#account_group ⇒ Object
Parameters to define the new AccountGroup.
1645 1646 1647 |
# File 'lib/models/porcelain.rb', line 1645 def account_group @account_group end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1653 1654 1655 1656 1657 1658 1659 |
# File 'lib/models/porcelain.rb', line 1653 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |