Sha256: 49f7b8922693533017a4d00382ae04fc68bda2875464f5b7d86127bf4029beab

Contents?: true

Size: 319 Bytes

Versions: 5

Compression:

Stored size: 319 Bytes

Contents

class EndecaOnDemand
  class SearchReport
    class Search < Proxy

      def initialize(search)
        search.children.each do |node|
          self.instance_variable_set(:"@#{node.name.downcase}", node.content)
          self.class_eval("attr_reader :#{node.name.downcase}")
        end
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
endeca_on_demand-1.0.1 lib/endeca_on_demand/search_report/search.rb
endeca_on_demand-1.0.0 lib/endeca_on_demand/search_report/search.rb
endeca_on_demand-0.9.9.7 lib/endeca_on_demand/search_report/search.rb
endeca_on_demand-0.9.9.6 lib/endeca_on_demand/search_report/search.rb
endeca_on_demand-0.9.9.5 lib/endeca_on_demand/search_report/search.rb