Class: SDM::AccountGroupDeleteResponse

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

Overview

GroupDeleteResponse returns information about an AccountGroup that was deleted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(meta: nil, rate_limit: nil) ⇒ AccountGroupDeleteResponse

Returns a new instance of AccountGroupDeleteResponse.



1978
1979
1980
1981
1982
1983
1984
# File 'lib/models/porcelain.rb', line 1978

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

Instance Attribute Details

#meta ⇒ Object

Reserved for future use.



1974
1975
1976
# File 'lib/models/porcelain.rb', line 1974

def meta
  @meta
end

#rate_limit ⇒ Object

Rate limit information.



1976
1977
1978
# File 'lib/models/porcelain.rb', line 1976

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1986
1987
1988
1989
1990
1991
1992
# File 'lib/models/porcelain.rb', line 1986

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