lib/gapic/presenters/service_presenter.rb in gapic-generator-0.2.3 vs lib/gapic/presenters/service_presenter.rb in gapic-generator-0.3.0

- old
+ new

@@ -76,10 +76,14 @@ def proto_service_name_full fix_namespace @api, "#{namespace}::#{name}" end + def module_name + proto_service_name_full.split("::").last + end + def proto_service_file_path @service.parent.name.sub ".proto", "_pb.rb" end def proto_service_file_name @@ -110,9 +114,13 @@ service_require + ".rb" end def service_file_name service_file_path.split("/").last + end + + def service_directory_name + service_require.split("/").last end def service_require ruby_file_path @api, proto_service_name_full end