Module: Zaikio::Loom

Defined in:
lib/zaikio/loom.rb,
lib/zaikio/loom/error.rb,
lib/zaikio/loom/event.rb,
lib/zaikio/loom/engine.rb,
lib/zaikio/loom/railtie.rb,
lib/zaikio/loom/version.rb,
lib/zaikio/loom/configuration.rb,
lib/zaikio/loom/event_serializer.rb,
lib/zaikio/loom/app_configuration.rb,
app/jobs/zaikio/loom/fire_event_job.rb

Defined Under Namespace

Classes: AppConfiguration, Configuration, Engine, Error, Event, EventSerializer, FireEventJob, Railtie

Constant Summary collapse

VERSION =
"1.4.0".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



13
14
15
# File 'lib/zaikio/loom.rb', line 13

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



16
17
18
19
# File 'lib/zaikio/loom.rb', line 16

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration)
end

.fire_event(name, **args) ⇒ Object



21
22
23
24
# File 'lib/zaikio/loom.rb', line 21

def self.fire_event(name, **args)
  event = Event.new(name, **args)
  FireEventJob.perform_later(event)
end