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