Module: Cardiac::Representation::Codecs::Xml

Defined in:
lib/cardiac/representation.rb

Class Method Summary collapse

Class Method Details

.decode(value, options = {}) ⇒ Object



118
119
120
# File 'lib/cardiac/representation.rb', line 118

def decode(value,options={})
  Hash.from_xml(value)
end

.encode(value, options = {}) ⇒ Object



114
115
116
# File 'lib/cardiac/representation.rb', line 114

def encode(value,options={})
  value.to_xml(options)
end