Class: SDM::AccountGroupCreateResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

AccountGroupCreateResponse reports the result of a create.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_group: nil, rate_limit: nil) ⇒ AccountGroupCreateResponse

Returns a new instance of AccountGroupCreateResponse.



1608
1609
1610
1611
1612
1613
1614
# File 'lib/models/porcelain.rb', line 1608

def initialize(
  account_group: nil,
  rate_limit: nil
)
  @account_group =  == nil ? nil : 
  @rate_limit = rate_limit == nil ? nil : rate_limit
end

Instance Attribute Details

#account_groupObject

The created AccountGroup.



1604
1605
1606
# File 'lib/models/porcelain.rb', line 1604

def 
  @account_group
end

#rate_limitObject

Rate limit information.



1606
1607
1608
# File 'lib/models/porcelain.rb', line 1606

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1616
1617
1618
1619
1620
1621
1622
# File 'lib/models/porcelain.rb', line 1616

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end