Class: SDM::AccountGroupGetResponse

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

Overview

AccountGroupGetResponse returns a requested AccountGroup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_group: nil, meta: nil, rate_limit: nil) ⇒ AccountGroupGetResponse

Returns a new instance of AccountGroupGetResponse.



1698
1699
1700
1701
1702
1703
1704
1705
1706
# File 'lib/models/porcelain.rb', line 1698

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

Instance Attribute Details

#account_groupObject

The requested AccountGroup.



1692
1693
1694
# File 'lib/models/porcelain.rb', line 1692

def 
  @account_group
end

#metaObject

Reserved for future use.



1694
1695
1696
# File 'lib/models/porcelain.rb', line 1694

def meta
  @meta
end

#rate_limitObject

Rate limit information.



1696
1697
1698
# File 'lib/models/porcelain.rb', line 1696

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1708
1709
1710
1711
1712
1713
1714
# File 'lib/models/porcelain.rb', line 1708

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