Sha256: 4103c8681523d915519575222a994848aef15eae8f04f63424554f8814f74a7d
Contents?: true
Size: 518 Bytes
Versions: 6
Compression:
Stored size: 518 Bytes
Contents
module Lifen module Communication class Attachment < Lifen::Base attribute :title, String attribute :path, String attribute :content_type, String def fhir_payload { contentAttachment: { data: base_64_encoded_content, title: title, contentType: "{#{content_type}}" } } end private def base_64_encoded_content Base64.encode64(File.open(path, "rb").read) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems