lib/dispatch-rider/registrars/publishing_destination.rb in dispatch-rider-2.1.0 vs lib/dispatch-rider/registrars/publishing_destination.rb in dispatch-rider-2.2.0
- old
+ new
@@ -1,10 +1,12 @@
+# frozen_string_literal: true
+
require 'ostruct'
module DispatchRider
module Registrars
class PublishingDestination < Base
- def value(name, options = {})
+ def value(_name, options = {})
::OpenStruct.new(:service => options[:service], :channel => options[:channel])
end
end
end
end