Sha256: 1dd8f4cb801efb3cbeadf065fdf5d29ddc0e67c88e92f7557a1e994d5c9aa46c

Contents?: true

Size: 319 Bytes

Versions: 5

Compression:

Stored size: 319 Bytes

Contents

class EndecaOnDemand
  class RecordSet
  	class Record < Proxy

      def initialize(record)
        record.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/record_set/record.rb
endeca_on_demand-1.0.0 lib/endeca_on_demand/record_set/record.rb
endeca_on_demand-0.9.9.7 lib/endeca_on_demand/record_set/record.rb
endeca_on_demand-0.9.9.6 lib/endeca_on_demand/record_set/record.rb
endeca_on_demand-0.9.9.5 lib/endeca_on_demand/record_set/record.rb