Class: HL7::Configuration

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

Overview

This class enables detailed configuration of the HL7 parser services.

By calling

HL7.configuration # => instance of HL7::Configuration

or

HL7.configure do |config|
  config # => instance of HL7::Configuration
end

you are able to perform configuration updates.

Setting the keys with this Configuration

HL7.configure do |config|
  config.empty_segment_is_error  = false
end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

:nodoc:



26
27
28
# File 'lib/configuration.rb', line 26

def initialize # :nodoc:
  @empty_segment_is_error = true
end

Instance Attribute Details

#empty_segment_is_errorObject

Returns the value of attribute empty_segment_is_error.



24
25
26
# File 'lib/configuration.rb', line 24

def empty_segment_is_error
  @empty_segment_is_error
end