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.
2005 2006 2007 2008 2009 2010 2011 2012 2013 |
# File 'lib/models/porcelain.rb', line 2005 def initialize( account_group: nil, meta: nil, rate_limit: nil ) @account_group = account_group == nil ? nil : account_group @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#account_group ⇒ Object
The requested AccountGroup.
1999 2000 2001 |
# File 'lib/models/porcelain.rb', line 1999 def account_group @account_group end |
#meta ⇒ Object
Reserved for future use.
2001 2002 2003 |
# File 'lib/models/porcelain.rb', line 2001 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
2003 2004 2005 |
# File 'lib/models/porcelain.rb', line 2003 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2015 2016 2017 2018 2019 2020 2021 |
# File 'lib/models/porcelain.rb', line 2015 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 |