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.

[View source]

5842
5843
# File 'lib/models/porcelain.rb', line 5842

def initialize()
end

Instance Method Details

#to_json(options = {}) ⇒ Object

[View source]

5845
5846
5847
5848
5849
5850
5851
# File 'lib/models/porcelain.rb', line 5845

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