Class: LifenFhir::Recipient
- Inherits:
-
Virtus::Attribute
- Object
- Virtus::Attribute
- LifenFhir::Recipient
- Defined in:
- lib/lifen_fhir.rb
Instance Method Summary collapse
Instance Method Details
#coerce(value) ⇒ Object
9 10 11 |
# File 'lib/lifen_fhir.rb', line 9 def coerce(value) (value.is_a?(Practitioner) or value.is_a?(Patient) or value.nil?) ? value : raise(Error) end |