Sha256: 081bbbfb16d96bfd41d9d808e9fa881342bf50c8195acb7cf6e9c6ca04f6635e
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 Bytes
Contents
# -*- encoding : utf-8 -*- module Untied class Event attr_accessor :name, :payload, :origin def initialize(attrs) @config = { :name => "after_create", :payload => nil, :origin => nil }.merge(attrs) raise "You should inform the origin service" unless @config[:origin] @name = @config.delete(:name) @payload = @config.delete(:payload) @origin = @config.delete(:origin) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
untied-publisher-0.0.5 | lib/untied-publisher/event.rb |