Class: SDM::NodeDeleteResponse
- Inherits:
-
Object
- Object
- SDM::NodeDeleteResponse
- Defined in:
- lib/models/porcelain.rb
Overview
NodeDeleteResponse returns information about a Node that was deleted.
Instance Attribute Summary collapse
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(meta: nil, rate_limit: nil) ⇒ NodeDeleteResponse
constructor
A new instance of NodeDeleteResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(meta: nil, rate_limit: nil) ⇒ NodeDeleteResponse
Returns a new instance of NodeDeleteResponse.
7256 7257 7258 7259 7260 7261 7262 |
# File 'lib/models/porcelain.rb', line 7256 def initialize( meta: nil, rate_limit: nil ) @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#meta ⇒ Object
Reserved for future use.
7252 7253 7254 |
# File 'lib/models/porcelain.rb', line 7252 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
7254 7255 7256 |
# File 'lib/models/porcelain.rb', line 7254 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
7264 7265 7266 7267 7268 7269 7270 |
# File 'lib/models/porcelain.rb', line 7264 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |