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.
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( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |