Class: Jeka::Analysis::AlgorithmInformation

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource
Defined in:
lib/jeka/analysis/algorithm_information.rb

Class Method Summary collapse

Class Method Details

.convert(hash) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/jeka/analysis/algorithm_information.rb', line 12

def self.convert(hash)
  info = []
  hash.each do |key, value|
    info << AlgorithmInformation.new(
      name: key,
      value: value
    )
  end
  info
end