Sha256: 442ce8e726d293a31cbc9a6e23295e7b61ca4f4c6cb26642f5a845ee5dc57bb1

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

module Jeka
  module Analysis
    class AlgorithmInformation
      include DataMapper::Resource
      
      property    :id,      Serial
      property    :name,    String
      property    :value,   String
      
      belongs_to  :algorithm
      
      def self.convert(hash)
        info = []
        hash.each do |key, value|
          info << AlgorithmInformation.new(
            name: key,
            value: value
          )
        end
        info
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jeka-0.2.3 lib/jeka/analysis/algorithm_information.rb