Class: SDM::GroupRoleGetResponse

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

Overview

GroupRoleGetResponse returns a requested GroupRole.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of GroupRoleGetResponse.



8740
8741
8742
8743
8744
8745
8746
8747
8748
# File 'lib/models/porcelain.rb', line 8740

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 requested GroupRole.



8734
8735
8736
# File 'lib/models/porcelain.rb', line 8734

def group_role
  @group_role
end

#metaObject

Reserved for future use.



8736
8737
8738
# File 'lib/models/porcelain.rb', line 8736

def meta
  @meta
end

#rate_limitObject

Rate limit information.



8738
8739
8740
# File 'lib/models/porcelain.rb', line 8738

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8750
8751
8752
8753
8754
8755
8756
# File 'lib/models/porcelain.rb', line 8750

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