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
Returns a new instance of GroupRoleCreateResponse.
8407 8408 8409 8410 8411 8412 8413 |
# File 'lib/models/porcelain.rb', line 8407 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.
8403 8404 8405 |
# File 'lib/models/porcelain.rb', line 8403 def group_role @group_role end |
#rate_limit ⇒ Object
Rate limit information.
8405 8406 8407 |
# File 'lib/models/porcelain.rb', line 8405 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8415 8416 8417 8418 8419 8420 8421 |
# File 'lib/models/porcelain.rb', line 8415 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 |