class RestPack::Service::Commands::Get
Public Instance Methods
execute()
click to toggle source
# File lib/restpack_service/commands/get.rb, line 4 def execute result = self.class.serializer_class.resource(inputs) if result[self.class.serializer_class.key].empty? status :not_found else result end end