Class: Redox::Models::PotentialMatches
- Inherits:
-
Array
- Object
- Array
- Redox::Models::PotentialMatches
- Defined in:
- lib/redox/models/potential_matches.rb
Instance Method Summary collapse
-
#initialize(data = []) ⇒ PotentialMatches
constructor
A new instance of PotentialMatches.
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 |