Class: SDM::GroupRoleCreateResponse
- Inherits:
-
Object
- Object
- SDM::GroupRoleCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
GroupRoleCreateResponse reports the result of a create.
Instance Attribute Summary collapse
-
#group_role ⇒ Object
The created GroupRole.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(group_role: nil, rate_limit: nil) ⇒ GroupRoleCreateResponse
constructor
A new instance of GroupRoleCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(group_role: nil, rate_limit: nil) ⇒ GroupRoleCreateResponse
8612 8613 8614 8615 8616 8617 8618 |
# File 'lib/models/porcelain.rb', line 8612 def initialize( group_role: nil, rate_limit: nil ) @group_role = group_role == nil ? nil : group_role @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#group_role ⇒ Object
The created GroupRole.
8608 8609 8610 |
# File 'lib/models/porcelain.rb', line 8608 def group_role @group_role end |
#rate_limit ⇒ Object
Rate limit information.
8610 8611 8612 |
# File 'lib/models/porcelain.rb', line 8610 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8620 8621 8622 8623 8624 8625 8626 |
# File 'lib/models/porcelain.rb', line 8620 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 |