Class: SDM::GroupCreateFromRolesResponse
- Inherits:
-
Object
- Object
- SDM::GroupCreateFromRolesResponse
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#group_from_role ⇒ Object
The created Group.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(group_from_role: nil, rate_limit: nil) ⇒ GroupCreateFromRolesResponse
constructor
A new instance of GroupCreateFromRolesResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(group_from_role: nil, rate_limit: nil) ⇒ GroupCreateFromRolesResponse
Returns a new instance of GroupCreateFromRolesResponse.
7183 7184 7185 7186 7187 7188 7189 |
# File 'lib/models/porcelain.rb', line 7183 def initialize( group_from_role: nil, rate_limit: nil ) @group_from_role = group_from_role == nil ? [] : group_from_role @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#group_from_role ⇒ Object
The created Group.
7179 7180 7181 |
# File 'lib/models/porcelain.rb', line 7179 def group_from_role @group_from_role end |
#rate_limit ⇒ Object
Rate limit information.
7181 7182 7183 |
# File 'lib/models/porcelain.rb', line 7181 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7191 7192 7193 7194 7195 7196 7197 |
# File 'lib/models/porcelain.rb', line 7191 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 |