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.



8032
8033
8034
8035
8036
8037
8038
8039
8040
# File 'lib/models/porcelain.rb', line 8032

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.



8026
8027
8028
# File 'lib/models/porcelain.rb', line 8026

def group_role
  @group_role
end

#metaObject

Reserved for future use.



8028
8029
8030
# File 'lib/models/porcelain.rb', line 8028

def meta
  @meta
end

#rate_limitObject

Rate limit information.



8030
8031
8032
# File 'lib/models/porcelain.rb', line 8030

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8042
8043
8044
8045
8046
8047
8048
# File 'lib/models/porcelain.rb', line 8042

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