Class: Scopa::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/scopa/filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, condition:, block:) ⇒ Filter

Returns a new instance of Filter.



7
8
9
10
11
# File 'lib/scopa/filter.rb', line 7

def initialize(name, condition:, block:)
  @name = name
  @condition = condition
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



5
6
7
# File 'lib/scopa/filter.rb', line 5

def block
  @block
end

#conditionObject (readonly)

Returns the value of attribute condition.



5
6
7
# File 'lib/scopa/filter.rb', line 5

def condition
  @condition
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/scopa/filter.rb', line 5

def name
  @name
end