Class: Bifrost::Entity

Inherits:
Object
  • Object
show all
Defined in:
lib/bifrost/entity.rb

Overview

Types that require access to the message bus should inherit this type. We’ve chosen inheritance at this point, perhaps a mixin might be a better approach

Direct Known Subclasses

Message, Topic, Worker

Instance Method Summary collapse

Constructor Details

#initializeEntity

Returns a new instance of Entity.



7
8
9
# File 'lib/bifrost/entity.rb', line 7

def initialize
  @bus ||= Bifrost::Bus.new
end