Class: Distelli::Marshaller
- Inherits:
-
Object
- Object
- Distelli::Marshaller
- Defined in:
- lib/distelli/servicemarshallers.rb
Direct Known Subclasses
Instance Method Summary collapse
- #add_object(obj) ⇒ Object
-
#initialize ⇒ Marshaller
constructor
A new instance of Marshaller.
Constructor Details
#initialize ⇒ Marshaller
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 |