Class: SDM::AccountGroupCreateResponse
- Inherits:
-
Object
- Object
- SDM::AccountGroupCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
AccountGroupCreateResponse reports the result of a create.
Instance Attribute Summary collapse
-
#account_group ⇒ Object
The created AccountGroup.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(account_group: nil, rate_limit: nil) ⇒ AccountGroupCreateResponse
constructor
A new instance of AccountGroupCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(account_group: nil, rate_limit: nil) ⇒ AccountGroupCreateResponse
1608 1609 1610 1611 1612 1613 1614 |
# File 'lib/models/porcelain.rb', line 1608 def initialize( account_group: nil, rate_limit: nil ) @account_group = account_group == nil ? nil : account_group @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#account_group ⇒ Object
The created AccountGroup.
1604 1605 1606 |
# File 'lib/models/porcelain.rb', line 1604 def account_group @account_group end |
#rate_limit ⇒ Object
Rate limit information.
1606 1607 1608 |
# File 'lib/models/porcelain.rb', line 1606 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1616 1617 1618 1619 1620 1621 1622 |
# File 'lib/models/porcelain.rb', line 1616 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 |