Class: SDM::AccountGrantDeleteResponse

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

Overview

AccountGrantDeleteResponse returns information about a AccountGrant that was deleted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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



863
864
865
866
867
868
869
870
871
872
873
# File 'lib/models/porcelain.rb', line 863

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

Instance Attribute Details

#metaObject

Reserved for future use.



859
860
861
# File 'lib/models/porcelain.rb', line 859

def meta
  @meta
end

#rate_limitObject

Rate limit information.



861
862
863
# File 'lib/models/porcelain.rb', line 861

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



875
876
877
878
879
880
881
# File 'lib/models/porcelain.rb', line 875

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