Class: Thrift::ServiceDefinition

Inherits:
StructDefinition show all
Defined in:
lib/thrift/definition.rb

Instance Attribute Summary

Attributes inherited from StructDefinition

#klass

Instance Method Summary collapse

Methods inherited from StructDefinition

#canonical_names, #initialize, #legacy_annotations, #namespace, #struct_type, #structured_annotations

Constructor Details

This class inherits a constructor from Thrift::StructDefinition

Instance Method Details

#client_classObject



49
50
51
# File 'lib/thrift/definition.rb', line 49

def client_class
  @klass::Client
end

#nameObject



57
58
59
# File 'lib/thrift/definition.rb', line 57

def name
  service
end

#processor_classObject



53
54
55
# File 'lib/thrift/definition.rb', line 53

def processor_class
  @klass::Processor
end

#serviceObject



61
62
63
# File 'lib/thrift/definition.rb', line 61

def service
  @klass::SERVICE
end

#service_typeObject



65
66
67
# File 'lib/thrift/definition.rb', line 65

def service_type
  "#{namespace}.#{service}"
end