Sha256: a7bfda6642613f2ae1b167674a7c3a80bc70ba1ba61b1d7d7d4d2eb534a4ed55

Contents?: true

Size: 557 Bytes

Versions: 1

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

module DispatchRider
  class Publisher::Configuration::Destination
    def initialize(name, attributes={})
      @name = name

      attributes = attributes.with_indifferent_access
      @service = attributes[:service]
      @channel = attributes[:channel]
      @options = attributes[:options]
    end

    attr_reader :name, :service, :channel, :options

    def ==(other)
      name == other.name &&
        service == other.service &&
        channel == other.channel &&
        options == other.options
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dispatch-rider-2.2.0 lib/dispatch-rider/publisher/configuration/destination.rb