Module: CPEE::Transformation::Service

Defined in:
lib/cpee/transformation/implementation.rb

Defined Under Namespace

Classes: ExtractDataelements, ExtractDescription, ExtractEndpoints

Constant Summary collapse

SERVER =
File.expand_path(File.join(__dir__,'implementation.xml'))

Class Method Summary collapse

Class Method Details

.implementation(opts) ⇒ Object

}}}



120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# File 'lib/cpee/transformation/implementation.rb', line 120

def self::implementation(opts)
  Proc.new do
    interface 'xml_cpee' do
      run ExtractDescription if post 'xmldedesc'
      run ExtractDataelements if post 'xmldadesc'
      run ExtractEndpoints if post 'xmlendesc'
    end
    interface 'text_cpee' do
      run ExtractDescription if post 'plaindedesc'
      run ExtractDataelements if post 'plaindadesc'
      run ExtractEndpoints if post 'plainendesc'
    end
    interface 'xml_text' do
      run ExtractDescription if post 'xmldedesc'
      run ExtractDataelements if post 'xmldadesc'
      run ExtractEndpoints if post 'xmlendesc'
    end
  end
end