module GraphqlGrpc::EnumDescriptorExt
Public Instance Methods
to_gql_type(prefix)
click to toggle source
# File lib/graphql_grpc/type_library.rb, line 136 def to_gql_type(prefix) "enum #{prefix}#{type_name} { #{entries.map(&:first).join("\n ")} }" end
type_name()
click to toggle source
# File lib/graphql_grpc/type_library.rb, line 131 def type_name # Take the last 2 name.split('.')[-2..-1].join('_') end