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.



5388
5389
# File 'lib/models/porcelain.rb', line 5388

def initialize()
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5391
5392
5393
5394
5395
5396
5397
# File 'lib/models/porcelain.rb', line 5391

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