Class: SDM::AccountGroupListResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

GroupListResponse returns a list of groups that meet the criteria of a GroupListRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rate_limit: nil) ⇒ AccountGroupListResponse

Returns a new instance of AccountGroupListResponse.



1786
1787
1788
1789
1790
# File 'lib/models/porcelain.rb', line 1786

def initialize(
  rate_limit: nil
)
  @rate_limit = rate_limit == nil ? nil : rate_limit
end

Instance Attribute Details

#rate_limitObject

Rate limit information.



1784
1785
1786
# File 'lib/models/porcelain.rb', line 1784

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1792
1793
1794
1795
1796
1797
1798
# File 'lib/models/porcelain.rb', line 1792

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end