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.



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

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_role ⇒ Object

The requested GroupRole.



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

def group_role
  @group_role
end

#meta ⇒ Object

Reserved for future use.



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

def meta
  @meta
end

#rate_limit ⇒ Object

Rate limit information.



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

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



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

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