Class: SDM::NodeDeleteResponse

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

Overview

NodeDeleteResponse returns information about a Node that was deleted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NodeDeleteResponse.



7970
7971
7972
7973
7974
7975
7976
# File 'lib/models/porcelain.rb', line 7970

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

Instance Attribute Details

#metaObject

Reserved for future use.



7966
7967
7968
# File 'lib/models/porcelain.rb', line 7966

def meta
  @meta
end

#rate_limitObject

Rate limit information.



7968
7969
7970
# File 'lib/models/porcelain.rb', line 7968

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



7978
7979
7980
7981
7982
7983
7984
# File 'lib/models/porcelain.rb', line 7978

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