class Liebre::Actor::Publisher::Resources

Attributes

context[R]

Public Class Methods

new(context) click to toggle source
# File lib/liebre/actor/publisher/resources.rb, line 6
def initialize context
  @context = context
end

Public Instance Methods

exchange() click to toggle source
# File lib/liebre/actor/publisher/resources.rb, line 10
def exchange
  @exchange ||= declare.exchange(exchange_config)
end

Private Instance Methods

declare() click to toggle source
# File lib/liebre/actor/publisher/resources.rb, line 24
def declare
  context.declare
end
exchange_config() click to toggle source
# File lib/liebre/actor/publisher/resources.rb, line 16
def exchange_config
  spec.fetch(:exchange)
end
spec() click to toggle source
# File lib/liebre/actor/publisher/resources.rb, line 20
def spec
  context.spec
end