Class: Publisher

Inherits:
Object
  • Object
show all
Defined in:
lib/open_ehr/serializer.rb

Instance Method Summary collapse

Constructor Details

#initialize(serializer) ⇒ Publisher

Returns a new instance of Publisher.



257
258
259
# File 'lib/open_ehr/serializer.rb', line 257

def initialize(serializer)
  @serializer = serializer
end

Instance Method Details

#publish(writer) ⇒ Object



261
262
263
# File 'lib/open_ehr/serializer.rb', line 261

def publish(writer)
  writer.out(@serializer.serialize)
end