Method: NexosisApi::Algorithm#initialize
- Defined in:
- lib/nexosis_api/algorithm.rb
#initialize(algoHash) ⇒ Algorithm
Returns a new instance of Algorithm.
4 5 6 7 8 |
# File 'lib/nexosis_api/algorithm.rb', line 4 def initialize(algoHash) algoHash.each do |k,v| instance_variable_set("@#{k}", v) unless v.nil? end end |