Class: Scopa::Filter
- Inherits:
-
Object
- Object
- Scopa::Filter
- Defined in:
- lib/scopa/filter.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, condition:, block:) ⇒ Filter
constructor
A new instance of Filter.
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
#block ⇒ Object (readonly)
Returns the value of attribute block.
5 6 7 |
# File 'lib/scopa/filter.rb', line 5 def block @block end |
#condition ⇒ Object (readonly)
Returns the value of attribute condition.
5 6 7 |
# File 'lib/scopa/filter.rb', line 5 def condition @condition end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/scopa/filter.rb', line 5 def name @name end |