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.



7719
7720
7721
7722
7723
7724
7725
# File 'lib/models/porcelain.rb', line 7719

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.



7715
7716
7717
# File 'lib/models/porcelain.rb', line 7715

def group
  @group
end

#rate_limitObject

Rate limit information.



7717
7718
7719
# File 'lib/models/porcelain.rb', line 7717

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



7727
7728
7729
7730
7731
7732
7733
# File 'lib/models/porcelain.rb', line 7727

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