Sha256: 9ea745b5c5c6abcc53c41d5099916f9ce7ce7b39ae68f62dfed4fac43162fd17

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

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)
      self.name == other.name &&
        self.service == other.service &&
        self.channel == other.channel &&
        self.options == other.options
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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