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.
7711 7712 7713 7714 7715 7716 7717 |
# File 'lib/models/porcelain.rb', line 7711 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.
7707 7708 7709 |
# File 'lib/models/porcelain.rb', line 7707 def group @group end |
#rate_limit ⇒ Object
Rate limit information.
7709 7710 7711 |
# File 'lib/models/porcelain.rb', line 7709 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7719 7720 7721 7722 7723 7724 7725 |
# File 'lib/models/porcelain.rb', line 7719 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 |