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.



8624
8625
8626
8627
8628
8629
8630
# File 'lib/models/porcelain.rb', line 8624

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.



8620
8621
8622
# File 'lib/models/porcelain.rb', line 8620

def group
  @group
end

#rate_limitObject

Rate limit information.



8622
8623
8624
# File 'lib/models/porcelain.rb', line 8622

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8632
8633
8634
8635
8636
8637
8638
# File 'lib/models/porcelain.rb', line 8632

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