Class: SDM::GenericResponseMetadata

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

Overview

GenericResponseMetadata contains common headers for generic request responses.

Instance Method Summary collapse

Constructor Details

#initializeGenericResponseMetadata

Returns a new instance of GenericResponseMetadata.



5401
5402
# File 'lib/models/porcelain.rb', line 5401

def initialize()
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5404
5405
5406
5407
5408
5409
5410
# File 'lib/models/porcelain.rb', line 5404

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