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.



8851
8852
8853
8854
8855
8856
8857
8858
8859
# File 'lib/models/porcelain.rb', line 8851

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.



8845
8846
8847
# File 'lib/models/porcelain.rb', line 8845

def group_role
  @group_role
end

#metaObject

Reserved for future use.



8847
8848
8849
# File 'lib/models/porcelain.rb', line 8847

def meta
  @meta
end

#rate_limitObject

Rate limit information.



8849
8850
8851
# File 'lib/models/porcelain.rb', line 8849

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8861
8862
8863
8864
8865
8866
8867
# File 'lib/models/porcelain.rb', line 8861

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