Class: Types::Plugin::Plugin::Processor

Inherits:
Object
  • Object
show all
Includes:
Thrift::Processor
Defined in:
lib/types/plugin/plugin.rb

Constant Summary collapse

THRIFT_METHOD_GENERATE_CODE_LEGACY_ANNOTATIONS =
{
}.freeze
THRIFT_METHOD_GENERATE_CODE_STRUCTURED_ANNOTATIONS =
[
].freeze
METHODS =
{
  'generate_code' => { args_klass: Generate_code_args, result_klass: Generate_code_result, args: [:req], exceptions: {}, oneway: false, legacy_annotations: THRIFT_METHOD_GENERATE_CODE_LEGACY_ANNOTATIONS, structured_annotations: THRIFT_METHOD_GENERATE_CODE_STRUCTURED_ANNOTATIONS},
}.freeze

Class Method Summary collapse

Methods included from Thrift::Processor

#build_processor, #initialize, #process, #read_args, write_exception, write_internal_error, #write_result

Class Method Details

.from_provider(handler, provider) ⇒ Object



116
117
118
# File 'lib/types/plugin/plugin.rb', line 116

def self.from_provider(handler, provider)
  provider.build(NAMESPACE, SERVICE, Processor, handler)
end