Module: EdifactConverter::Configuration
- Defined in:
- lib/edifact_converter/configuration.rb,
lib/edifact_converter/configuration/xml_rule.rb,
lib/edifact_converter/configuration/edifact_rule.rb,
lib/edifact_converter/configuration/json_configurator.rb,
lib/edifact_converter/configuration/yaml_configurator.rb
Defined Under Namespace
Classes: EdifactRule, JSONConfigurator, XMLRule, YAMLConfigurator
Class Attribute Summary collapse
-
.format_edi ⇒ Object
Returns the value of attribute format_edi.
-
.hide_position ⇒ Object
(also: hide_position?)
Returns the value of attribute hide_position.
Class Method Summary collapse
- .binary?(version) ⇒ Boolean
- .configurator ⇒ Object
- .configurator=(configurator) ⇒ Object
- .edifact_rules(type, segment_group) ⇒ Object
-
.xml_rules(*args) ⇒ Object
Either namespace or type and version.
Class Attribute Details
.format_edi ⇒ Object
Returns the value of attribute format_edi.
14 15 16 |
# File 'lib/edifact_converter/configuration.rb', line 14 def format_edi @format_edi end |
.hide_position ⇒ Object Also known as: hide_position?
Returns the value of attribute hide_position.
14 15 16 |
# File 'lib/edifact_converter/configuration.rb', line 14 def hide_position @hide_position end |
Class Method Details
.binary?(version) ⇒ Boolean
34 35 36 |
# File 'lib/edifact_converter/configuration.rb', line 34 def binary?(version) configurator.binary? version.to_s end |
.configurator ⇒ Object
26 27 28 |
# File 'lib/edifact_converter/configuration.rb', line 26 def configurator @configurator ||= JSONConfigurator.new end |
.configurator=(configurator) ⇒ Object
30 31 32 |
# File 'lib/edifact_converter/configuration.rb', line 30 def configurator=(configurator) @configurator = configurator end |
.edifact_rules(type, segment_group) ⇒ Object
18 19 20 |
# File 'lib/edifact_converter/configuration.rb', line 18 def edifact_rules(type, segment_group) configurator.edifact_rules(type, segment_group) end |
.xml_rules(*args) ⇒ Object
Either namespace or type and version
22 23 24 |
# File 'lib/edifact_converter/configuration.rb', line 22 def xml_rules(*args) #Either namespace or type and version configurator.xml_rules *args end |