class ObjectFramework::GRPC::StatusPresenter
Constants
- STATUSES
Public Class Methods
Source
# File lib/object_framework/grpc/server.rb, line 25 def initialize(registry:); @registry = registry; end
Public Instance Methods
Source
# File lib/object_framework/grpc/server.rb, line 27 def call(error) description = @registry.resolve(error) [STATUSES.fetch(description.category), description.code, description.title] end