Class: TrustyCms::ResourceResponses::Collector
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- TrustyCms::ResourceResponses::Collector
- Defined in:
- lib/trusty_cms/resource_responses.rb
Instance Method Summary collapse
-
#initialize ⇒ Collector
constructor
A new instance of Collector.
- #initialize_copy(orig) ⇒ Object
Methods inherited from OpenStruct
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OpenStruct
Instance Method Details
#initialize_copy(orig) ⇒ Object
57 58 59 60 61 62 |
# File 'lib/trusty_cms/resource_responses.rb', line 57 def initialize_copy(orig) super @table.keys.each do |key| @table[key] = orig.send(key).dup end end |