Class: Eventboss::Middleware::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/eventboss/middleware.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, options) ⇒ Entry

Returns a new instance of Entry.



47
48
49
50
# File 'lib/eventboss/middleware.rb', line 47

def initialize(klass, options)
  @klass = klass
  @options = options
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



45
46
47
# File 'lib/eventboss/middleware.rb', line 45

def klass
  @klass
end

#optionsObject (readonly)

Returns the value of attribute options.



45
46
47
# File 'lib/eventboss/middleware.rb', line 45

def options
  @options
end

Instance Method Details

#buildObject



52
53
54
# File 'lib/eventboss/middleware.rb', line 52

def build
  @klass.new(options)
end