Sha256: 7e515612b33702a32878d6a60c187832ae12b16d9ffc2121aaf7d4653996cf3c

Contents?: true

Size: 345 Bytes

Versions: 9

Compression:

Stored size: 345 Bytes

Contents

module Routemaster
  class Topic

    attr_reader :name, :publisher, :events

    def initialize(options)
      @name      = options.fetch('name')
      @publisher = options.fetch('publisher')
      @events    = options.fetch('events')
    end

    def attributes
      { name: @name, publisher: @publisher, events: @events }
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
routemaster-client-3.1.0 routemaster/topic.rb
routemaster-client-3.0.0 routemaster/topic.rb
routemaster-client-2.1.0 routemaster/topic.rb
routemaster-client-2.0.0 routemaster/topic.rb
routemaster-client-1.2.3 routemaster/topic.rb
routemaster-client-1.3.1 routemaster/topic.rb
routemaster-client-1.2.2 routemaster/topic.rb
routemaster-client-1.2.1 routemaster/topic.rb
routemaster-client-1.2.0 routemaster/topic.rb