Class: Radiant::ResourceResponses::Collector

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/radiant/resource_responses.rb

Instance Method Summary collapse

Constructor Details

#initializeCollector

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