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.



2083
2084
2085
2086
2087
# File 'lib/models/porcelain.rb', line 2083

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

Instance Attribute Details

#rate_limitObject

Rate limit information.



2081
2082
2083
# File 'lib/models/porcelain.rb', line 2081

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2089
2090
2091
2092
2093
2094
2095
# File 'lib/models/porcelain.rb', line 2089

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