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.



8286
8287
8288
8289
8290
8291
8292
# File 'lib/models/porcelain.rb', line 8286

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.



8282
8283
8284
# File 'lib/models/porcelain.rb', line 8282

def group
  @group
end

#rate_limitObject

Rate limit information.



8284
8285
8286
# File 'lib/models/porcelain.rb', line 8284

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8294
8295
8296
8297
8298
8299
8300
# File 'lib/models/porcelain.rb', line 8294

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