Module: Nicehash::Algo::ModuleMethods

Included in:
Nicehash::Algo
Defined in:
lib/nicehash/algo.rb

Instance Method Summary collapse

Instance Method Details

#allObject



38
39
40
# File 'lib/nicehash/algo.rb', line 38

def all
  ALL
end

#from_id(id) ⇒ Object



42
43
44
# File 'lib/nicehash/algo.rb', line 42

def from_id(id)
  ALL[id]
end

#to_id(algo) ⇒ Object



46
47
48
# File 'lib/nicehash/algo.rb', line 46

def to_id(algo)
  ALL.find_index(algo)
end