Sha256: 826618547e7278da19c06b9ae5768f311b9cf317feea0b4fa1f84e1f47a675b1
Contents?: true
Size: 523 Bytes
Versions: 6
Compression:
Stored size: 523 Bytes
Contents
module LifenFhir class Address < Element attribute :lines, [String] attribute :postal_code, String attribute :city, String attribute :country, String def attributes_from_json(json) self.lines = Array(json.fetch("line")) self.postal_code = json.fetch("postalCode") self.city = json.fetch("city") self end def fhir_payload { "line": lines, "city": city, "postalCode": postal_code, "country": country } end end end
Version data entries
6 entries across 6 versions & 1 rubygems