Sha256: 64b8b0d97f7e7f39a9ba2a687681b9ea2aa7889e786b1900cc969a4b132818d8

Contents?: true

Size: 583 Bytes

Versions: 2

Compression:

Stored size: 583 Bytes

Contents

require 'dag_link_calculator/version'
require 'dag_link_calculator/cycle_exception'
require 'dag_link_calculator/node_link'
require 'dag_link_calculator/direct_link'
require 'dag_link_calculator/node_route'
require 'dag_link_calculator/calculator'

module DagLinkCalculator
  def self.from_direct_links_structs(direct_links_structs)
    Calculator.new(direct_links_structs)
  end

  def self.from_direct_links_hashes(direct_links_hashes)
    direct_links_structs = direct_links_hashes.map { |h| DirectLink.from_hash(h) }
    from_direct_links_structs(direct_links_structs)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dag_link_calculator-1.0.0 lib/dag_link_calculator.rb
dag_link_calculator-0.1.0 lib/dag_link_calculator.rb