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.



2012
2013
2014
2015
2016
2017
2018
2019
2020
# File 'lib/models/porcelain.rb', line 2012

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.



2006
2007
2008
# File 'lib/models/porcelain.rb', line 2006

def 
  @account_group
end

#metaObject

Reserved for future use.



2008
2009
2010
# File 'lib/models/porcelain.rb', line 2008

def meta
  @meta
end

#rate_limitObject

Rate limit information.



2010
2011
2012
# File 'lib/models/porcelain.rb', line 2010

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2022
2023
2024
2025
2026
2027
2028
# File 'lib/models/porcelain.rb', line 2022

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