Class: Maxwell::Agent::Middleware::Chain::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/maxwell/agent/middleware/chain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, *args) ⇒ Entry

Returns a new instance of Entry.


76
77
78
79
# File 'lib/maxwell/agent/middleware/chain.rb', line 76

def initialize(klass, *args)
  @klass = klass
  @args = args
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.


74
75
76
# File 'lib/maxwell/agent/middleware/chain.rb', line 74

def klass
  @klass
end

Instance Method Details

#==(other) ⇒ Object


85
86
87
# File 'lib/maxwell/agent/middleware/chain.rb', line 85

def ==(other)
  self.klass == other.klass
end

#buildObject


81
82
83
# File 'lib/maxwell/agent/middleware/chain.rb', line 81

def build
  @klass.new(*@args)
end