Class: IngramMicroEngine::NotificationAdapter

Inherits:
Struct
  • Object
show all
Defined in:
lib/ingram_micro_engine.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#subscriberObject

Returns the value of attribute subscriber

Returns:

  • (Object)

    the current value of subscriber



41
42
43
# File 'lib/ingram_micro_engine.rb', line 41

def subscriber
  @subscriber
end

Class Method Details

.call(callable) ⇒ Object



42
43
44
# File 'lib/ingram_micro_engine.rb', line 42

def self.call(callable)
  new(callable)
end

Instance Method Details

#call(*args) ⇒ Object



46
47
48
49
# File 'lib/ingram_micro_engine.rb', line 46

def call(*args)
  payload = args.last
  subscriber.call(payload)
end