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.



6126
6127
6128
6129
6130
6131
6132
# File 'lib/models/porcelain.rb', line 6126

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.



6122
6123
6124
# File 'lib/models/porcelain.rb', line 6122

def meta
  @meta
end

#rate_limitObject

Rate limit information.



6124
6125
6126
# File 'lib/models/porcelain.rb', line 6124

def rate_limit
  @rate_limit
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6134
6135
6136
6137
6138
6139
6140
# File 'lib/models/porcelain.rb', line 6134

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