Class: SDM::GroupCreateResponse
- Inherits:
-
Object
- Object
- SDM::GroupCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
GroupCreateResponse reports the result of a create.
Instance Attribute Summary collapse
-
#group ⇒ Object
The created Group.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(group: nil, rate_limit: nil) ⇒ GroupCreateResponse
constructor
A new instance of GroupCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(group: nil, rate_limit: nil) ⇒ GroupCreateResponse
Returns a new instance of GroupCreateResponse.
8347 8348 8349 8350 8351 8352 8353 |
# File 'lib/models/porcelain.rb', line 8347 def initialize( group: nil, rate_limit: nil ) @group = group == nil ? nil : group @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#group ⇒ Object
The created Group.
8343 8344 8345 |
# File 'lib/models/porcelain.rb', line 8343 def group @group end |
#rate_limit ⇒ Object
Rate limit information.
8345 8346 8347 |
# File 'lib/models/porcelain.rb', line 8345 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8355 8356 8357 8358 8359 8360 8361 |
# File 'lib/models/porcelain.rb', line 8355 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 |