Class: SDM::GenericResponseMetadata
- Inherits:
-
Object
- Object
- SDM::GenericResponseMetadata
- Defined in:
- lib/models/porcelain.rb
Overview
GenericResponseMetadata contains common headers for generic request responses.
Instance Method Summary collapse
-
#initialize ⇒ GenericResponseMetadata
constructor
A new instance of GenericResponseMetadata.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize ⇒ GenericResponseMetadata
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( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |