Class: SDM::AccountGroupGetResponse
- Inherits:
-
Object
- Object
- SDM::AccountGroupGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
AccountGroupGetResponse returns a requested AccountGroup.
Instance Attribute Summary collapse
-
#account_group ⇒ Object
The requested AccountGroup.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(account_group: nil, meta: nil, rate_limit: nil) ⇒ AccountGroupGetResponse
constructor
A new instance of AccountGroupGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(account_group: nil, meta: nil, rate_limit: nil) ⇒ AccountGroupGetResponse
Returns a new instance of AccountGroupGetResponse.
1759 1760 1761 1762 1763 1764 1765 1766 1767 |
# File 'lib/models/porcelain.rb', line 1759 def initialize( account_group: nil, meta: nil, rate_limit: nil ) @account_group = account_group == nil ? nil : account_group = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#account_group ⇒ Object
The requested AccountGroup.
1753 1754 1755 |
# File 'lib/models/porcelain.rb', line 1753 def account_group @account_group end |
#meta ⇒ Object
Reserved for future use.
1755 1756 1757 |
# File 'lib/models/porcelain.rb', line 1755 def end |
#rate_limit ⇒ Object
Rate limit information.
1757 1758 1759 |
# File 'lib/models/porcelain.rb', line 1757 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1769 1770 1771 1772 1773 1774 1775 |
# File 'lib/models/porcelain.rb', line 1769 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 |