Class: Radiant::ResourceResponses::Collector
- Defined in:
- lib/radiant/resource_responses.rb
Instance Method Summary collapse
-
#initialize ⇒ Collector
constructor
A new instance of Collector.
- #initialize_copy(orig) ⇒ Object
Constructor Details
#initialize ⇒ Collector
Returns a new instance of Collector.
46 47 48 49 |
# File 'lib/radiant/resource_responses.rb', line 46 def initialize super @table = Hash.new {|h,k| h[k] = Response.new } end |
Instance Method Details
#initialize_copy(orig) ⇒ Object
51 52 53 54 55 56 |
# File 'lib/radiant/resource_responses.rb', line 51 def initialize_copy(orig) super @table.keys.each do |key| @table[key] = orig.send(key).dup end end |