Class: Distelli::Marshaller

Inherits:
Object
  • Object
show all
Defined in:
lib/distelli/servicemarshallers.rb

Direct Known Subclasses

JsonMarshaller, XmlMarshaller

Instance Method Summary collapse

Constructor Details

#initializeMarshaller

Returns a new instance of Marshaller.



11
12
13
# File 'lib/distelli/servicemarshallers.rb', line 11

def initialize()
  @object_map = Hash.new
end

Instance Method Details

#add_object(obj) ⇒ Object



15
16
17
# File 'lib/distelli/servicemarshallers.rb', line 15

def add_object(obj)
  @object_map[obj.name] = obj
end