Method: Megam::RequestCollection#to_hash
- Defined in:
- lib/megam/core/request_collection.rb
#to_hash ⇒ Object
Transform the ruby obj -> to a Hash
105 106 107 108 109 110 111 |
# File 'lib/megam/core/request_collection.rb', line 105 def to_hash index_hash = Hash.new self.each do |request| index_hash[request.node_name] = request.to_s end index_hash end |