Class: SDM::GroupUpdateResponse

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

Overview

groupUpdateResponse returns the fields of a group after it has been updated by a groupUpdateRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(group: nil, rate_limit: nil) ⇒ GroupUpdateResponse

Returns a new instance of GroupUpdateResponse.



7810
7811
7812
7813
7814
7815
7816
# File 'lib/models/porcelain.rb', line 7810

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

Instance Attribute Details

#groupObject

The updated group.



7806
7807
7808
# File 'lib/models/porcelain.rb', line 7806

def group
  @group
end

#rate_limitObject

Rate limit information.



7808
7809
7810
# File 'lib/models/porcelain.rb', line 7808

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



7818
7819
7820
7821
7822
7823
7824
# File 'lib/models/porcelain.rb', line 7818

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