Class: NucleusCore::XmlResponse

Inherits:
ResponseAdapter show all
Defined in:
lib/nucleus_core/response_adapters/xml_response.rb

Instance Attribute Summary

Attributes inherited from SimpleObject

#__attributes__

Instance Method Summary collapse

Methods inherited from SimpleObject

#to_h

Constructor Details

#initialize(attrs = {}) ⇒ XmlResponse

Returns a new instance of XmlResponse.



4
5
6
7
8
# File 'lib/nucleus_core/response_adapters/xml_response.rb', line 4

def initialize(attrs={})
  attrs = attrs.merge(type: "application/xml")

  super(attrs)
end