Class: SDM::GroupRoleDeleteResponse

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

Overview

GroupRoleDeleteResponse returns information about a group that was deleted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(group_role: nil, meta: nil, rate_limit: nil) ⇒ GroupRoleDeleteResponse

Returns a new instance of GroupRoleDeleteResponse.



8449
8450
8451
8452
8453
8454
8455
8456
8457
# File 'lib/models/porcelain.rb', line 8449

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

Instance Attribute Details

#group_roleObject

The deleted GroupRole.



8443
8444
8445
# File 'lib/models/porcelain.rb', line 8443

def group_role
  @group_role
end

#metaObject

Reserved for future use.



8445
8446
8447
# File 'lib/models/porcelain.rb', line 8445

def meta
  @meta
end

#rate_limitObject

Rate limit information.



8447
8448
8449
# File 'lib/models/porcelain.rb', line 8447

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8459
8460
8461
8462
8463
8464
8465
# File 'lib/models/porcelain.rb', line 8459

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