Class: SDM::GroupRoleGetResponse
- Inherits:
-
Object
- Object
- SDM::GroupRoleGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
GroupRoleGetResponse returns a requested GroupRole.
Instance Attribute Summary collapse
-
#group_role ⇒ Object
The requested GroupRole.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(group_role: nil, meta: nil, rate_limit: nil) ⇒ GroupRoleGetResponse
constructor
A new instance of GroupRoleGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(group_role: nil, meta: nil, rate_limit: nil) ⇒ GroupRoleGetResponse
Returns a new instance of GroupRoleGetResponse.
8714 8715 8716 8717 8718 8719 8720 8721 8722 |
# File 'lib/models/porcelain.rb', line 8714 def initialize( group_role: nil, meta: nil, rate_limit: nil ) @group_role = group_role == nil ? nil : group_role = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#group_role ⇒ Object
The requested GroupRole.
8708 8709 8710 |
# File 'lib/models/porcelain.rb', line 8708 def group_role @group_role end |
#meta ⇒ Object
Reserved for future use.
8710 8711 8712 |
# File 'lib/models/porcelain.rb', line 8710 def end |
#rate_limit ⇒ Object
Rate limit information.
8712 8713 8714 |
# File 'lib/models/porcelain.rb', line 8712 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8724 8725 8726 8727 8728 8729 8730 |
# File 'lib/models/porcelain.rb', line 8724 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |