class Liebre::Actor::Context

Attributes

chan[R]
config[R]
name[R]
opts[R]

Public Class Methods

new(chan, name, opts, config) click to toggle source
# File lib/liebre/actor/context.rb, line 10
def initialize chan, name, opts, config
  @chan = chan
  @name = name
  @opts = opts

  @config = config
end

Public Instance Methods

declare() click to toggle source
# File lib/liebre/actor/context.rb, line 22
def declare
  @declare ||= Declare.new(chan)
end
handler() click to toggle source
# File lib/liebre/actor/context.rb, line 26
def handler
  @handler ||= Handler.new(opts)
end
logger() click to toggle source
# File lib/liebre/actor/context.rb, line 30
def logger
  config.logger
end
spec() click to toggle source
# File lib/liebre/actor/context.rb, line 18
def spec
  opts.fetch(:resources, {})
end