Sha256: dbde1b55efa7c6b446aa26c7f0448b39a25a4f1ea49ba44b92f1e39b0faebfe4
Contents?: true
Size: 558 Bytes
Versions: 14
Compression:
Stored size: 558 Bytes
Contents
module BBK module App class Dispatcher class Result attr_accessor :route, :message def initialize(route, message) @route = route.is_a?(String) ? Dispatcher::Route.new(route) : route raise 'route must be of type Dispatcher::Route' unless @route.is_a?(Dispatcher::Route) @message = message end def deconstruct [route.to_s, message] end def deconstruct_keys(_keys) {route: route.to_s, message: message} end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems