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
Returns a new instance of AccountGroupCreateResponse.
1913 1914 1915 1916 1917 1918 1919 |
# File 'lib/models/porcelain.rb', line 1913 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.
1909 1910 1911 |
# File 'lib/models/porcelain.rb', line 1909 def account_group @account_group end |
#rate_limit ⇒ Object
Rate limit information.
1911 1912 1913 |
# File 'lib/models/porcelain.rb', line 1911 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1921 1922 1923 1924 1925 1926 1927 |
# File 'lib/models/porcelain.rb', line 1921 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 |