class Routemaster::Client::Topic

Attributes

events[R]
name[R]
publisher[R]

Public Class Methods

new(options) click to toggle source
# File routemaster/client/topic.rb, line 7
def initialize(options)
  @name      = options.fetch('name')
  @publisher = options.fetch('publisher')
  @events    = options.fetch('events')
end

Public Instance Methods

attributes() click to toggle source
# File routemaster/client/topic.rb, line 13
def attributes
  { name: @name, publisher: @publisher, events: @events }
end