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.
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 = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#group_role ⇒ Object
The requested GroupRole.
8734 8735 8736 |
# File 'lib/models/porcelain.rb', line 8734 def group_role @group_role end |
#meta ⇒ Object
Reserved for future use.
8736 8737 8738 |
# File 'lib/models/porcelain.rb', line 8736 def @meta end |
#rate_limit ⇒ Object
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( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |