Class: Redox::Models::PotentialMatches

Inherits:
Array
  • Object
show all
Defined in:
lib/redox/models/potential_matches.rb

Instance Method Summary collapse

Constructor Details

#initialize(data = []) ⇒ PotentialMatches

Returns a new instance of PotentialMatches.



4
5
6
7
8
9
10
# File 'lib/redox/models/potential_matches.rb', line 4

def initialize(data = [])
  if false == data.nil?
    super(data.map {|patient| Redox::Models::Patient.new(patient) })
  else
    super([])
  end
end